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
scope
Type: Microsoft.UpdateServices.Administration.InventoryScopeDefines the class and property to look for.
propertyValue
Type: System.ObjectThe value of the property to match.
includeSubgroups
Type: System.Booleantrue 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
The computer target group could not be found.
scope cannot be null.
See Also
IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace
Return to top