Skip to content

Get unit WSUS Group

Gets the WSUS Group name for a computer.

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

UnitName (String)

The name or UUID of the unit.

UnitType (String)

Type of Unit

  • “Computer”
  • “User”

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.

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