Prohibited File

This policy allows you to monitor and enforce the deletion or moving of unauthorized files from a specified volume/drive or directory. For example, you can automate deletion of .jpg, .mp3, and .avi files from a server.

With this policy, you can:

Directories to Monitor
For this instance of the policy, you can specify the paths to be monitored. These directories are used as the source to determine which files are to be deleted or moved in the target locations. You cannot move files to a directory that is being monitored.

Path
This can be a volume, drive, or directory name. It must be the full path when a directory is given. You can add multiple paths. For each path that you enter, files matching the file types that you define in the File Type field are either deleted or moved according to which Action button you select. Variables are supported in the paths.

Subdirectory
Select the check box to specify that all subdirectories be included. If you want only a certain subdirectory, you should create another policy just for that subdirectory by giving its full path in the Path field.

Add
Opens a dialog box where you can enter a path. This field cannot be browsed, so you must know the full path to the files to be moved or deleted.

Edit
Allows you to edit the selected path.

Remove
Removes the selected path entry from the list.

IMPORTANT: Do not have the directory where the files are to be moved to be beneath the directories that are being monitored.

File Type
You can specify the type of files you want to monitor.

Add
Opens a dialog box where you specify a file type. You can include wildcard characters. This field cannot be browsed, so you must enter the correct information to identify the files to be moved or deleted.

Edit
Allows you to edit the selected file type.

Remove
Removes the selected file type from the list.

Action
You have two options for how to handle the files you’ve specified in the Directories to Monitor and the File Types fields:

Delete Files
Select the option button to delete the specified files from all of the paths that you have identified.

Move Files To
Select the option button to move the specified files to the path that you specify in this field. This field cannot be browsed, so you must know the full path to where you want the files to be moved.

IMPORTANT: You cannot move files to a directory that is being monitored.

If you move files:

When a File Is Locked
Occasionally, files you might be trying to delete or move might be open. For these files, you can specify one of the following resolutions:

1. Retry __ Times
Select the check box and enter a number for how many times you want to retry deleting or moving the file before continuing on with the next file. Valid entries are from 1 to 10. The time used by each increment depends on the various hardware and software speeds involved in your system.

Use this field to allow enough time for a temporarily-opened file to be closed, such as a file that is only opened long enough for the application to either obtain a copy for editing or write a new copy of the file.

2. Kill Connection of Open Files  (NetWare only)
Select the check box to have the file deleted or moved, even if opened by a user at the time. It kills the connection that is holding the file open so that the file can be deleted or moved.

IMPORTANT: You can only kill connections to files on workstations. Server files cannot be disconnected from the process that has them open.



ZENworks Online Documentation