Version: 5
restore

Contents

Method

DeployPatch

ModulePatch
LibraryCore
Action

Deploy the specified patch

Parameters

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

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

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

Downloaded (boolean): The success (true) or failure (false) of whether the patch was downloaded

DownloadStatus (integer): The COM success (0) or error (not 0) codes.

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



Installation (boolean): The success (true) or failure (false) of whether the patch was installed

ComError (integer): If any error occurred


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

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 microsoft.com is used.
  • WSUSL to indicate that a locally hosted corporate Windows Service Update Service feed is used.