Skip to content

Get reinstall status

Gets the reinstall status for a computer.

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

UnitName (String)

The name or UUID of the unit.

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

Boolean. Returns True if the computer is set up for reinstall, for example with Add unit to reinstall. Returns False if it isn’t, or if the unit type isn’t Computer.

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