Version: 6





Deploy the specified patch


Source (string): The source identifier. One of CAB, SCCM, WSUSG or WSUSL.

PatchId (string): The identifier of the patch that should be deployed on this device.

DownloadOnly (boolean, default(false)): The patch should be downloaded from the source but not installed.

CabFilePath (string, default(empty)): The location of the cab file if source is 'CAB'.

Return values

PatchId (string): The Patch identifier passed in to the method.

DownloadOnly (boolean): Whether the patch was to be staged (false) or installed (true), this is the supplied DownloadOnly parameter.

NeededDownload (boolean): Whether the patch actually needed to be downloaded.

DownloadResult (integer): The COM success (0) or error (not 0) codes related to downloading.

DownloadError (string): The human readable form of the DownloadedResult column.

NeededInstallation (boolean): Whether the patch actually needed to be installed (true) or it was already installed (false).

InstallResult (integer): The COM success (0) or error (not 0) codes related to installation.

InstallationError (string): The human readable form of InstallResult.

Patch.DeployPatch(Source:"SCCM", PatchId:"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee");
  • Windows
  • Linux
  • MacOS
  • Solaris Intel
  • Solaris Sparc
  • Android

The Source parameter strings are :

  • CAB to indicates the source is a file with .cab extension and appropriate binary structure, located somewhere in the file system available to the local agent.
  • SCCM to indicate that the agent should use System Center Configuration Manager as the source.
  • WSUSG to indicate that the global Windows Server Update Service feed at is used.
  • WSUSL to indicate that a locally hosted corporate Windows Service Update Service feed is used.