...
ComputerName (String)
The name or UUID of the computer
OSpointID (Integer)
...
This parameter is optional. The default value is; "" which does not set a schedule for the reinstall but does it at next agent rerun.
CustomField1 (String)
The Value og CustomField1 in OS Deployment
This parameter is optional. The default value is; ""
CustomField2 (String)
The Value og CustomField2 in OS Deployment
This parameter is optional. The default value is; ""
Return Value
Boolean. The function returns True if successful, otherwise false.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.AddUnitToReinstall("Klient","1","1","3","2","1","KlientNew","AlwaysConfirm",True,False,False,"comment","2015-05-05 12:00") |
With CustomFields
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.AddUnitToReinstall("Klient","1","1","3","2","1","KlientNew","AlwaysConfirm",True,False,False,"comment","", "CustomField1Value", "CustomField2Value") |
or if the unit has to keep the same name:
...