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)
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
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.
Type: Microsoft.UpdateServices.Administration.ComputerTargetCollection
A collection of computers that have reported the requested inventory item.
Exception
Condition
The computer target group could not be found.
scope cannot be null.
IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace
Return to top