Product manual
GFI LanGuard 13 Utilities | 224
Switch Description
/Shutdown (Optional) Shuts down computers after scan.
/ShutdownIntervalStart (Optional) Dependent on /Shutdown. The start time of the interval when shutdown is
allowed. Use hh:mm:ss format.
/ShutdownIntervalEnd (Optional) Dependent on /Shutdown. The end time of the interval when shutdown is allowed.
Use hh:mm:ss format.
/? (Optional) Use this switch to show the command line tool usage instructions.
Note
Always enclose full paths and profile names within double quotes. For example, “[path
or path name]” or “C:\temp\test.xml”.
The command line target–scanning tool allows you to pass parameters through specific variables.
These variables will be automatically replaced with their respective value during execution. The table
below describes the supported variables:
Supported variables
Variable Description
%INSTALLDIR% During scanning, this variable will be replaced with the path to the GFI LanGuard installation direc-
tory.
%TARGET% During scanning this variable will be replaced with the name of the target computer.
%SCANDATE% During scanning this variable will be replaced with the date of scan.
%SCANTIME% During scanning this variable will be replaced with the time of scan.
Table 86: Supported variables in lnssmcd
Example
1. To perform a security scan on a target computer having IP address ‘130.16.130.1’.
2. Output the scan results to ‘c:\out.xml’ (i.e. XML file).
3. Generate a PDF report and save it in ‘c:\result.odf’.
4. Send the PDF report via email to ‘lanss@domain.com’
The command should be as follows:
lnsscmd.exe 130.16.130.1 /Profile="Default" /Output="c:\out.xml"
/Report="c:\result.pdf" /Email /emailAddress="lanss@domain.com"
13.9.2 Using deploycmd.exe
The ‘deploycmd.exe’ command line patch deployment tool allows you to deploy Microsoft
®
patches
and third party software on remote targets directly from the command line, or through third party
applications, batch files or scripts. The ‘deploycmd.exe’ command line tool supports the following
switches:
deploycmd <target> </file=FileName> [/switches=Switches]
[/username=UserName /password=Password] [/warnuser] [/userapproval]
[/stopservices] [/customshare=CustomShareName] [/reboot]
[/rebootuserdecides] [/wake] [/shutdown] [/deletefiles] [/timeout=Timeout
(sec)] [/usecomputerprofiles] [/RebootCountdown=Time(sec)]
[/RebootCountdownMessage="Custom message"][/RebootAtFirstOccurenceOf=Time
(formatted as "hh:mm:ss")] [/ShutDownAtFirstOccurenceOf=Time(formatted as