IUpdateServer.SearchComputerTargets Method (String)


Applies To: Windows Server Update Services

Gets a collection of target computers whose full domain name contains the given string.

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


ComputerTargetCollection SearchComputerTargets(
    string name
ComputerTargetCollection^ SearchComputerTargets(
    String^ name
abstract SearchComputerTargets : 
        name:string -> ComputerTargetCollection
Function SearchComputerTargets (
    name As String
) As ComputerTargetCollection


  • name
    Type: System.String

    String to search for. The string must be less than 256 characters. The method compares the string to the full domain name of each target computer. The target is added to the returned collection if the string is a substring of the target's full domain name. The comparison is case-insensitive.

Return Value

Type: Microsoft.UpdateServices.Administration.ComputerTargetCollection

A ComputerTargetCollection collection of target computers whose name contains the search string. The collection is empty if no matches are found.





name cannot be null.


name cannot be an empty string or greater than 255 characters.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top