CMS\_RerunPackage
Description
Section titled “Description”Sets status for the specified package to ‘Waiting’ causing it to rerun the next time the Agent is being executed.
Syntax
Section titled “Syntax”:vb: CMS_RerunPackage(sPackage, sVersion) as Boolean
:ps: [bool]CMS_RerunPackage -package <string> -version <string>
Parameters
Section titled “Parameters”sPackage (String)
Name of package
sVersion (String)
Version of package
Return value
Section titled “Return value”:vb: Boolean, TRUE if function completed successfully.
:ps: Boolean, TRUE if function completed successfully.
Example
Section titled “Example”:vb: VBScript
Section titled “:vb: VBScript”If bStatus Then bStatus = CMS_RerunPackage("CapaInstaller", "v1.0"):ps: PowerShell
Section titled “:ps: PowerShell”if (CMS_RerunPackage -package 'Microsoft Office 366' -version 'v2.0') { $cs.Job_WriteLog("Waiting", "Office Leap year will be reinstalled on next agent run")}