Partager via


IComputerTargetGroup.GetComputerTargetsWithInventory Method (InventoryScope, Object, Boolean)

 

Applies To: Windows Server Update Services

Returns a collection of computers that have reported the requested inventory item.

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

Syntax

ComputerTargetCollection GetComputerTargetsWithInventory(
    InventoryScope scope,
    object propertyValue,
    bool includeSubgroups
)
ComputerTargetCollection^ GetComputerTargetsWithInventory(
    InventoryScope^ scope,
    Object^ propertyValue,
    bool includeSubgroups
)
abstract GetComputerTargetsWithInventory : 
        scope:InventoryScope *
        propertyValue:Object *
        includeSubgroups:bool -> ComputerTargetCollection
Function GetComputerTargetsWithInventory (
    scope As InventoryScope,
    propertyValue As Object,
    includeSubgroups As Boolean
) As ComputerTargetCollection

Parameters

  • propertyValue
    Type: System.Object

    The value of the property to match.

  • includeSubgroups
    Type: System.Boolean

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

Return Value

Type: Microsoft.UpdateServices.Administration.ComputerTargetCollection

A collection of computers that have reported the requested inventory item.

Exceptions

Exception

Condition

WsusObjectNotFoundException

The computer target group could not be found.

ArgumentNullException

scope cannot be null.

See Also

IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace

Return to top