Filescrn screen modify

 

Applies To: Windows Server 2008

Modifies a file screen.

Note

To use this command, you must be logged on as an administrator or a member of the Administrators group.

For examples of how to use this command, see Examples.

Syntax

filescrn screen modify /path:<Path> [/sourcetemplate:<TemplateName>] 
   [/type:{active | passive}] [/add-filegroup:<NewFgName>] [...] 
   [/delete-filegroup:<FgName>] [...] 
   [/add-notification:<NotifyType>,<ConfigFile>] [...] 
   [/delete-notification:<NotifyType>] [...] 
   [/modify-notification:<NotifyType>,<ConfigFile>] [...] 
   [/remote:<ComputerName>]

Parameters

Parameter

Description

/path:<Path>

Modifies file screen configured on path Path. You can append the following wildcard characters:

  • \. — a folder specified by Path

  • \* — all immediate subfolders of Path

  • \... — all recursive subfolders of Path

/sourcetemplate:<TemplateName>

Derives file screen properties from the file screen template TemplateName. If the template name contains a space, enclose the name in quotation marks.

/type:{active | passive}

Modifies file screen type:

  • active — blocks users from saving unauthorized files

  • passive — enables users to save unauthorized files, but configured notifications will be generated

/add-filegroup:<NewFgName> [...]

Adds file group NewFgName to the list of blocked file groups for the file screen. If the file group name contains a space, enclose the name in quotation marks. You can use this parameter multiple times.

/delete-filegroup:<FgName> [...]

Deletes file group FgName from the list of blocked file groups for the file screen. If the file group name contains a space, enclose the name in quotation marks. You can use this parameter multiple times

/add-notification:<NotifyType>,<ConfigFile> [...]

Adds a notification of type NotifyType, configured according to the information in the configuration file ConfigFile. You can use this parameter multiple times.

NotifyType must be one of the following:

  • m — an e-mail notification

  • e — an event log notification

  • c — a command or script execution

  • r — a report generation

ConfigFile is the path to the configuration file for the notification. For more information, see Configuration files for notifications in File Server Resource Manager.

Important

If the value specified for NotifyType does not match the value of the Notification parameter in the configuration file, the command will fail with an error.

/delete-notification:<NotifyType> [...]

Deletes a notification of type NotifyType. (For information on NotifyType, see the description of /add-notification:.) You can use this parameter multiple times.

/modify-notification:<NotifyType>,<ConfigFile> [...]

Modifies a notification of type NotifyType, to be configured according to the information in the configuration file ConfigFile. (For information on NotifyType and ConfigFile, see the description of /add-notification:.) You can use this parameter multiple times.

/remote:<ComputerName>

Performs the operation on the remote computer ComputerName.

Remarks

  • File screen properties that are not modified by using command parameters remain unchanged.

  • To create and manage file groups, use the Filescrn filegroup command.

  • The **/sourcetemplate:**TemplateName parameter derives the following properties from the file screen template TemplateName:

    • File groups that are screened

    • The file screen type (active or passive)

    • Notifications (if configured)

    You can override the derived file groups and file screen type by using the /add-filegroup: and /type: parameters.

    To modify the derived notifications, use the modify-notification: parameter.

  • To create and manage file screen templates, use the Filescrn template command.

  • The shortest sequence of characters that uniquely identifies a parameter can be used as an abbreviation. For example, the following two commands are equivalent:

    filescrn s m /p:d:\scratch /t:p
    filescrn screen modify /path:d:\scratch /type:passive
    
  • To perform operations on a remote computer by using the **/remote:**ComputerName parameter:

    • You must be logged on with a domain account that is a member of the Administrators group on both the local computer and the remote computer.

    • The remote computer must be running Windows Server 2008, and File Server Resource Manager must be installed.

    • The Remote File Server Resource Manager Management exception on the remote computer must be enabled. You enable this exception by using Windows Firewall in Control Panel.

Examples

  • To modify the file screen configured on path D:\scratch on the remote computer FILESERVER1 to derive file screen properties from Screened Files Template, type:

    filescrn screen modify /path:d:\scratch /sourcetemplate:"Screened Files Template" /remote:fileserver1
    
  • To add the Executable Files group to the list of blocked files in file screens configured in subfolders of D:\users, type:

    filescrn screen modify /path:d:\users\* /add-filegroup:"Executable Files"
    

Additional references

Command-Line Syntax Key

Filescrn screen