Get reinstall status
Description
Section titled “Description”Gets the reinstall status for a computer.
Syntax
Section titled “Syntax”GetReinstallStatus(Byval UnitName as String, Byval UnitType as String) as Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name or UUID of the unit.
UnitType (String)
Type of Unit
- “Computer”
- “User”
Return value
Section titled “Return value”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.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.GetReinstallStatus("Klient","Computer")