With the on-demand scan command line interface, you can start, stop, pause, resume, and get status for quick, full, and custom on-demand scans from the command line or as part of a batch file. All users can start a scan and check the status of a scan, regardless of the interface mode for the Trellix Endpoint Security (ENS) Client.
Prerequisites
The Threat Prevention service (
mfetp.exe) must already be running foramcfg.exeto run.The interface mode for the Trellix Endpoint Security (ENS) Client must be set to Full access if a user wants to stop, pause or resume an on-demand scan through command line.
Syntax: On-demand scan command line interface
The on-demand scan syntax for amcfg.exe is:
installation_path\amcfg.exe /scan /task [command_args]
installation_path — C:\Program Files\McAfee\Endpoint Security\Threat Prevention by default
command_args— One of the commands in the On‑demand scan command arguments table
Arguments can appear in any order, except that you must keep each argument with its value.
The scan is executed only if all values are correct. Otherwise, amcfg.exe displays a message with the possible values and doesn't run the scan. If the command line includes multiple values for an argument, the scan runs using only the first value. The scanner ignores any invalid configuration arguments.
Argument | Value | Description |
|---|---|---|
|
| Specifies the type of scan task to run. If you enter |
|
| Specifies the scan action to apply to the previously specified
All users can start a scan and check the status of a scan, regardless of the interface mode for the Trellix Endpoint Security (ENS) Client.
|
Examples: On-demand scan command line interface
Open a command prompt and change to the installation location of amcfg.exe to run these example commands. By default, amcfg.exe is located in the C:\Program Files\McAfee\Endpoint Security\Threat Prevention folder.
To... | Run this command |
|---|---|
Start a Quick Scan. |
|
| |
Display the status of a Quick Scan. |
|
Pause the currently running Quick Scan. |
|
Resume the currently paused Quick Scan. |
|
Stop a Quick Scan. |
|
Start a Full Scan. |
|
Display the status of a Full Scan. |
|
Pause the currently running Full Scan. |
|
Resume the currently paused Full Scan. |
|
Stop a Full Scan. |
|
Display a list of defined custom scan names and their scan IDs. |
|
Start a custom scan with the specified ID. |
|
Display the status of a custom scan with the specified ID. |
|
Pause the currently running custom scan with the specified ID. |
|
Resume the currently paused custom scan with the specified ID. |
|
Stop a custom scan with the specified ID. |
|