/
CMS_RerunPackage
CMS_RerunPackage
Description
Sets status for the specified package to 'Waiting' causing it to rerun the next time the Agent is being executed.
Syntax
CMS_RerunPackage(sPackage, sVersion) as Boolean
[bool]CMS_RerunPackage -package <string> -version <string>
Parameters
sPackage (String)
Name of package
sVersion (String)
Version of package
Return value
Boolean, TRUE if function completed successfully.
Boolean, TRUE if function completed successfully.
Example
VBScript
If bStatus Then bStatus = CMS_RerunPackage("CapaInstaller", "v1.0")
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")
}
Related functions
Related content
CMS_RunSystemAgent
CMS_RunSystemAgent
Read with this
CMS_RerunPackage
CMS_RerunPackage
More like this
PowerShell Scripting Library
PowerShell Scripting Library
Read with this
CMS_RerunPackage
CMS_RerunPackage
More like this
CMS_SetPackageStatusToInstalled
CMS_SetPackageStatusToInstalled
More like this
CMS_ExistPackageOnManagementServer
CMS_ExistPackageOnManagementServer
More like this