Skip to content

Get unit WSUS Group

Get the WSUS Group name for a unit 

GetUnitWSUSGroup(ByVal unitName As String, ByVal unitType As String) As String

UnitName (String)

The name of the unit

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

String. The function returns the WSUS Group for the unit.

VBScript

Set oCMS = CreateObject("CapaInstaller.SDK")
wscript.echo oCMS.SetDefaultManagementPoint("1")
wscript.echo oCMS.GetUnitWSUSGroup("Klient", "Computer")