12.10 FileCheck

Use this Knowledge Script to check whether a particular file exists on one or more computers. This script raises an event if it finds the file you specified.

12.10.1 Resource Objects

Windows 2003 Server or later

12.10.2 Default Schedule

The default interval for this script is Run once.

12.10.3 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Full path to file

Provide the full path to the file you want to check, for example:

%systemroot%\system32\clock.exe

Notes

  • If you include spaces in the filepath, the event details include a broken link to the file.

  • If the file is on a network-mounted drive, the computer where you run this script must be running with a Windows domain account that can access the remote drive. Otherwise, the job may report an error because it cannot access files on the remote drive.

Event when found?

Set to y to raise an event if the specified file is found. If set to n, an event is raised when the file cannot be found. The default is y.

Event severity

Set the event severity level, from 1 to 40, to indicate the importance of an event in which the specified file is found or not found. The default is 5 (red event indicator).