IUpdateServer.GetComputerTargetGroup Method (Guid)
Applies To: Windows Server Update Services
Gets the specified target group.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
IComputerTargetGroup GetComputerTargetGroup(
Guid id
)
IComputerTargetGroup^ GetComputerTargetGroup(
Guid id
)
abstract GetComputerTargetGroup :
id:Guid -> IComputerTargetGroup
Function GetComputerTargetGroup (
id As Guid
) As IComputerTargetGroup
Parameters
id
Type: System.GuidGUID of the target group.
Return Value
Type: Microsoft.UpdateServices.Administration.IComputerTargetGroup
An IComputerTargetGroup object used to manage the group of client computers and get update statistics for the group.
Exceptions
Exception
Condition
id cannot be null.
WSUS could not find the target group with the given identifier.
Remarks
To get the All Computers or Unassigned Computers target group, use AllComputers or UnassignedComputers, respectively.
Examples
The following example shows how to use the ComputerTargetGroupId class to get the All Computers computer group.
Dim AllComputersGroup As IComputerTargetGroup
AllComputersGroup = updateServer.GetComputerTargetGroup(ComputerTargetGroupId.AllComputers)
See Also
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace
Return to top