TerminalServicesProvider::SetUserConfiguration

The SetUserConfiguration method sets Terminal Services-related user settings for the specified user in Active Directory or on the specified Terminal server. This is the method to use to grant or deny individual user access to Terminal Services at the domain level or alternatively at the individual server level.

The user settings that can be controlled through the SetUserConfiguration method are listed here:

The setting 'fTerminalServerRemoteHomeDir' is read-only; it can be queried with GetUserConfiguration but cannot be set with this method.

A call to this method may set all of the settings or any desired subset.

If an error occurs during the processing of this request, the provider will attempt to restore all changed settings to their original values before returning the error.

 Arguments
 Remarks
 Sample Code
 Applies To
 See Also