The article explains how to run a scheduled on-demand scan from a command prompt. A scan can be defined or predefined.
CAUTION: This article contains information about opening or modifying the registry.
- The following information is intended for System Administrators. Registry modifications are irreversible and could cause system failure if done incorrectly.
- Before proceeding, Technical Support strongly recommends that you back up your registry and understand the restore process. For more information, see: http://support.microsoft.com/kb/256986.
- Do not run a REG file that is not confirmed to be a genuine registry import file.
- Get the task ID from the registry:
- Press the Windows Key + R, type regedit and press Enter.
- Go to: [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\McAfee\DesktopProtection\Tasks]
- Expand the Tasks key by clicking [+].
Example of a Task ID: {21221C11-A06D-4558-B833-98E8C7F6C4D2}
- Verify szTaskName to ensure you have the ID for the correct task name and note the Task ID.
Example of a Task name: IDS_ODS_TASKNAME_FULL_SCAN
- Run the task:
- Click Start, Run, type cmd and press Enter.
- Navigate to VirusScan Enterprise installation folder.
- Type scan32.exe /Task {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} and press Enter.
(where {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} is the ID noted in Step 1)
This task runs in the user/admin context when running this command.
NOTE: If the task needs to run with System permissions (for example, as with scheduled tasks) create a .BAT file and copy the entire command into this file.
Example: C:\Program Files\McAfee\VirusScan Enterprise\scan32.exe /Task {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}
Use Windows Scheduled tasks to create a scheduled task to run this batch file.