IUpdateServer.GetComputerTargets Method (ComputerTargetScope)

 

Applies To: Windows Server Update Services

Gets all computers that match the specified search criteria.

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

Syntax

ComputerTargetCollection GetComputerTargets(
    ComputerTargetScope searchScope
)
ComputerTargetCollection^ GetComputerTargets(
    ComputerTargetScope^ searchScope
)
abstract GetComputerTargets : 
        searchScope:ComputerTargetScope -> ComputerTargetCollection
Function GetComputerTargets (
    searchScope As ComputerTargetScope
) As ComputerTargetCollection

Parameters

Return Value

Type: Microsoft.UpdateServices.Administration.ComputerTargetCollection

A collection of computers that match the specified search criteria.

Exceptions

Exception

Condition

ArgumentNullException

searchScope is null.

ArgumentOutOfRangeException

Meets one of the following conditions:

  • searchScope.FromLastSyncTime is greater than searchScope.ToLastSyncTime or

  • searchScope.FromLastReportedStatusTime is greater than searchScope.ToLastReportedStatusTime.

See Also

GetComputerTargets Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top