Set unit WSUS Group
Description
Section titled “Description”Sets the WSUS Group for a computer. The Management Server that the computer is linked to is then told to update its WSUS settings.
Syntax
Section titled “Syntax”SetUnitWSUSGroup(ByVal unitName As String, ByVal unitType As String, ByVal WSUSGroupName As String) As Boolean
Parameters
Section titled “Parameters”UnitName (String)
The name or UUID of the unit.
UnitType (String)
Type of Unit
- “Computer”
Only computers can be linked to a WSUS Group.
WSUSGroupName(String)
The name of the WSUS Group to link the unit to
Return value
Section titled “Return value”Boolean. The function returns True if successful, otherwise false.
Example
Section titled “Example”Set oCMS = CreateObject("CapaInstaller.SDK")wscript.echo oCMS.SetInstanceManagementPoint("1")wscript.echo oCMS.SetUnitWSUSGroup("Klient", "Computer", "WSUS Default Group")