Get unit WSUS Group
Description
Section titled “Description”Gets the WSUS Group name for a computer.
Syntax
Section titled “Syntax”GetUnitWSUSGroup(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. The function returns the name of the WSUS Group for the computer. If the computer isn’t linked to a WSUS Group, the function returns an empty string.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.GetUnitWSUSGroup("Klient", "Computer")