Compartilhar via


IComputerTarget.Id Property

 

Applies To: Windows Server Update Services

Gets the GUID of the client computer.

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

Syntax

string Id { get; }
property String^ Id {
    String^ get();
}
abstract Id : string with get
ReadOnly Property Id As String

Property Value

Type: System.String

The GUID of the client computer.

Exceptions

Exception

Condition

WsusObjectNotFoundException

You cannot attempt to get the client using the temporary value after WSUS changes the identifier.

Remarks

WSUS sets the identifier value when you call RegisterComputer to register a client computer. The client first contacts the WSUS server to register itself when you call RegisterComputer, WSUS creates a temporary Id value for the client. When the client first contacts the WSUS server, WSUS changes the identifier to the client's identifier value. If you try to get the client using the temporary value after WSUS changes the identifier, you will receive a WsusObjectNotFoundException exception.

See Also

IComputerTarget Interface
Microsoft.UpdateServices.Administration Namespace

Return to top