Issue:
How do I run a manual scan using the command line on WithSecure Server Security or Client Security?
Resolution:
The command line option to execute a manual scan can be either used to run a scan on-demand. Additionally the command and the arguments can be used to fill the "Generic" scheduled scan task specific parameters.
To run the task locally via command line:
- Press the Windows button
- Search for cmd.exe and press Enter
- Navigate to the client's installation directory (for example: cd C:\Program Files (x86)\F-Secure\)
- For Client Security, navigate further to the Client Security directory. For Server Security, navigate to the Server Security directory.
- Type in fsscan.exe and add any of the below arguments/options, then press Enter
- The scan will be executed and further details will be returned in the command window
Example 1
Retrieving information on available options:
C:\Program Files (x86)\F-Secure\Client Security>fsscan -?
Usage: fsscan [options]
Options:
--sched, -s | Runs a scan optimized for scheduled scanning |
--target, -t <target> | Scans the given <target> (not supported since CS 15.11) |
--report, -r <report> | Writes an unformatted report to <report> file (only with -c) |
--delete, -d | Deletes all harmful files found |
--collection, -c | Runs a scan optimized for large collections of harmful files |
--noflyer, -f | Skip showing scheduled scanning flyer |
-?, -h, --help | Displays this help |
Example 2
Scanning a specific directory (downloads directory of the user Foo):
C:\Program Files (x86)\F-Secure\Client Security>fsscan.exe -t C:\Users\Foo\Downloads\
Setting up a scheduled scan on a specific directory via Policy Manager Console:
- Log on to your Policy Manager Console.
- Select the Policy domain
or Host
/
where you want to edit the policy on. - In the Settings, select the Manual Scan item
- Go to the table under Scheduled scanning
- Add a new row
- Choose Task Type = Generic
- Edit the Task Type Specific Parameters, for example to scan the downloads directory of the user Foo: C:\Program Files (x86)\F-Secure\Server Security\fsscan.exe -t C:\Users\Foo\Downloads
- Exit the table
- Distribute the policy
![User-added image](https://f-secure.file.force.com/servlet/rtaImage?eid=ka167000000sabo&feoid=00Nb000000AP6yL&refid=0EM0X000001gp4M)
Article no: 000011456