Freigeben über


ISmsClient::ReAssignSite Method

Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2

The ISmsClient::ReAssignSite method, in Configuration Manager, forces the client to rediscover its assigned site and then reassign itself to that site.

[IDL]
HRESULT ReAssignSite(
      BSTR* sSiteCode
);

Parameters

  • sSiteCode
    Data type: BSTR

    Qualifiers: [out, retval]

    Pointer to the new assigned site code of the client.

Return Value

An HRESULT code. Possible values include, but are not limited to, the following:

  • S_OK
    The method succeeded.

Remarks

Using this method is the same as forcing an auto-assignment on the client.

Local administrator privileges are required to call this method.

Requirements

smsclient.dll

Runtime Requirements

For more information, see Configuration Manager Client Runtime Requirements.

Development Requirements

For more information, see Configuration Manager Client Development Requirements.

See Also

Concepts

SmsClient Client COM Automation Class
Configuration Manager Client Configuration