Skip to content

Get reinstall status

Gets the reinstall status for a unit.

GetReinstallStatus(Byval UnitName as String, Byval UnitType as String) as Boolean

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

Boolean. Returns true if the specified unit has a scheduled reinstall.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.GetReinstallStatus("Klient","Computer")