FILE_CHECK

This policy item checks whether the file (value_data) exists or not (file_option). The check is performed by calling the function CreateFile.

Note: This check requires remote registry access for the remote Windows system to function properly.

Usage

<custom_item>

type: FILE_CHECK

description: ["description"]

value_type: [VALUE_TYPE]

value_data: [value]

(optional) check_type: [value]

file_option: [OPTION_TYPE]

</custom_item>

The allowed types are:

value_type: POLICY_TEXT

value_data: "file name"

file_option: MUST_EXIST or MUST_NOT_EXIST

Examples

<custom_item>

type: FILE_CHECK

description: "Check that win.ini exists in the system root"

value_type: POLICY_TEXT

value_data: "%SystemRoot%\win.ini"

file_option: MUST_EXIST

</custom_item>

<custom_item>

type: FILE_CHECK

description: "Check that bad.exe does not exist in the system root"

value_type: POLICY_TEXT

value_data: "%SystemRoot%\bad.exe"

file_option: MUST_NOT_EXIST

</custom_item>