Compartir a través de


IComputerTargetGroup.GetComputerTargets Method (Boolean)

 

Applies To: Windows Server Update Services

Get the list of computers in the computer target group.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

ComputerTargetCollection GetComputerTargets(
    bool includeSubgroups
)
ComputerTargetCollection^ GetComputerTargets(
    bool includeSubgroups
)
abstract GetComputerTargets : 
        includeSubgroups:bool -> ComputerTargetCollection
Function GetComputerTargets (
    includeSubgroups As Boolean
) As ComputerTargetCollection

Parameters

  • includeSubgroups
    Type: System.Boolean

    true if subgroups of this group should be included, otherwise false.

Return Value

Type: Microsoft.UpdateServices.Administration.ComputerTargetCollection

A ComputerTargetCollection of the computers in the computer target group.

Exceptions

Exception

Condition

WsusObjectNotFoundException

The computer target group could not be found in the database.

See Also

GetComputerTargets Overload
IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace

Return to top