IUpdateServer.GetComputerTarget Method (String)

 

Applies To: Windows Server Update Services

Gets the specified client computer.

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

Syntax

IComputerTarget GetComputerTarget(
    string id
)
IComputerTarget^ GetComputerTarget(
    String^ id
)
abstract GetComputerTarget : 
        id:string -> IComputerTarget
Function GetComputerTarget (
    id As String
) As IComputerTarget

Parameters

  • id
    Type: System.String

    Unique identifier of the client that you want to get. For details, see Id.

Return Value

Type: Microsoft.UpdateServices.Administration.IComputerTarget

An IComputerTarget that represents the specified client computer. Use the interface to get client metadata, for example, its IP address or domain name.

Exceptions

Exception

Condition

ArgumentNullException

id cannot be null.

WsusObjectNotFoundException

WSUS could not find the client computer with the given identifier.

Remarks

Note that the metadata may not exist if the client has not yet contacted the WSUS server.

To get a computer target using a full domain name, call SearchComputerTargets.

See Also

IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top