GFI
English Deutsch Français Italiano Nederlands Español
Table of ContentsPreviousNextIndex

Using `deploycmd.exe' - the command line patch deployment tool

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] [/username=UserName /password=Password] [/UseComputerProfiles] [/warnuser] [/useraproval] [/stopservices] [/customshare=CustomShareName] [/reboot] [/rebootuserdecides] [/shutdown] [/deletefiles] [/timeout=Timeout(sec)] [/?]

Switches:
  • Target - Specify the name(s), IP or range of IPs of the target computer(s) on which the patch(es) will be deployed.
  • /File - Specify the file that you wish to deploy on the specified target(s).
  • /User and /Password - (Optional) Specify the alternative credentials that the scanning engine will use to authenticate to a target computer during patch deployment. Alternatively you can use the /UseComputerProfiles switch to use the authentication credentials already configured in the Computer Profiles (Configuration } Computer Profiles node).
  • /warnuser - (Optional) Include this switch if you want to inform the target computer user that a file/patch installation is in progress. Users will be informed through a message dialog which will be shown on screen immediately before the deployment session is started.
  • /useraproval - (Optional) Include this switch to request the user's approval before starting the file/patch installation process. This allows users to postpone the file/patch installation process for later (for example, until an already running process is completed on the target computer).
  • /stopservice - (Optional) Include this switch if you want to stop specific services on the target computer before installing the file/patch.

NOTE: You cannot specify the services that will be stopped directly from the command line tool. Services can only be added or removed through the configuration interface. For more information on how to specify services to be stopped, refer to the `Deployment options' section in the `Patch Management: Deploying custom software' chapter.

  • /customshare - (Optional) Specify the target share where you wish to transfer the file before it is installed.
  • /reboot - (Optional Parameter) Include this switch if you want to reboot the target computer after file/patch deployment.
  • /rebootuserdecides - (Optional Parameter) Include this switch to allow the current target computer user to decide when to reboot his computer (after patch installation).
  • /shutdown - (Optional Parameter) Include this switch if you want to shutdown the target computer after the file/patch is installed.
  • /deletefiles - (Optional Parameter) Include this switch if you want to delete the source file after it has been successfully installed.
  • /timeout - (Optional Parameter) Specify the deployment operation timeout. This value defines the time that a deployment process will be allowed to run before the file/patch installation is interrupted.
  • /? - (Optional) Use this switch to show the command line tool's usage instructions.
Example: How to launch a patch deployment process from the command line tool.

For this example, we will be assuming that a patch deployment session with the following parameters is required:

1. Deploy a file called `patchA001002.XXX'

2. On target computer `TMjason'.

3. Reboot the target computer after successful deployment of the file.

The command line tool instruction for this particular patch deployment session is:

deploycmd TMjason /file="patchA001002.XXX" /reboot


Table of ContentsPreviousNextIndex


   © 2008. All rights reserved. GFI Software Home Products Download Trials Support Ordering Site Map About Us Contact us
GFI solutions: anti spam - exchange anti virus - isa server - network vulnerability scanner - event log management - USB security software - exchange archiving - fax server software