Version: 4
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


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.