GetUnitFolder
Description
Section titled “Description”Gets the folder for a unit.
The unit must be on the Management Point that you selected with Set instance management point.
Syntax
Section titled “Syntax”GetUnitFolder(Byval UnitName as String, Byval UnitType as String) as String
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”String. If the unit is placed in a folder, its folder structure will be returned in the format: Folder1\Folder2. If it is not located in a folder an empty string will be returned.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.GetUnitFolder("Klient","Computer")