Get unit WSUS Group
Description
Section titled “Description”Get the WSUS Group name for a unit
Syntax
Section titled “Syntax”GetUnitWSUSGroup(ByVal unitName As String, ByVal unitType As String) As String
Parameters
Section titled “Parameters”UnitName (String)
The name of the unit
UnitType (String)
Type of Unit
- “Computer”
- “User”
Return Value
Section titled “Return Value”String. The function returns the WSUS Group for the unit.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetDefaultManagementPoint("1")wscript.echo oCMS.GetUnitWSUSGroup("Klient", "Computer")