Partilhar via


ISmsClient::EnableAutoAssignment 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::EnableAutoAssignment method, in Configuration Manager, enables or disables the auto-assignment feature of the client.

[IDL]
HRESULT EnableAutoAssignment(
      VARIANT_BOOL bEnable
);

Parameters

  • bEnable
    Data type: VARIANT_BOOL

    Qualifiers: [in]

    true (1) if auto-assignment is enabled.

Return Value

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

  • S_OK
    The method succeeded.

Remarks

When auto-assignment is enabled, the client performs the task on a scheduled interval. Use of this interval allows the client to find new sites when roaming between sites.

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

ISmsClient Client COM Automation Interface
Configuration Manager Client Configuration