NNS ADix - How to...Import or Export Terminal Services Related Attributes
   

This topic describes how to import or export Terminal Services/Remote Desktop Services related
attributes
with NNS ADix.

General

Although attributes used for Terminal Services (Remote Desktop Services) are not stored in Active Directory, these attributes can be
managed using the Active Directory Users- and Computers tool (ADUC).

Note:
    In fact the Terminal Services related user data is stored in an attribute called userData as some kind of
    'binary blob with ASCII'. Therefore is very difficult to work with this attribute directly.


Import or Export Terminal Services (Remote Desktop Services) Related Attributes

With NNS ADix we provide a way to conveniently export/import Terminal Services related attributes, although these attributes are not part
of Active Directory.
The following table contains a list of the auxiliary attributes used for Terminal Services (Remote Desktop Services):

Attribute Export/Import Behavior
AllowLogon A value that specifies whether the user is allowed to log on to the RD Session Host server. The value is one if logon is allowed, and zero if logon is not allowed.
BrokenConnectionAction A value that specifies the action to be taken when a Remote Desktop Services session limit is reached. The value is one if the client session should be terminated, and zero if the client session should be disconnected.
ConnectClientDrivesAtLogon Connect client drives at logon. The value is one if client drives should be connected, and zero if client drives should not be disconnected.
ConnectClientPrintersAtLogon A value that specifies whether to reconnect to mapped client printers at logon. The value is one if reconnection is enabled, and zero if reconnection is disabled.
DefaultToMainPrinter A value that specifies whether to print automatically to the client's default printer. The value is one if printing to the client's default printer is enabled, and zero if it is disabled.
EnableRemoteControl A value that specifies whether to allow remote observation or remote control of the user's Remote Desktop Services session. Possible values:
0: Disable Remote Control
1: Enabled, Require User’s Permission, Interact
2: Enabled, NO Require User’s Permission, Interact
3: Enabled, Require User’s Permission, View ONLY
4: Enabled, NO Require User’s Permission, View ONLY
MaxConnectionTime The maximum duration of the Remote Desktop Services session, in minutes. After the specified number of minutes have elapsed, the session can be disconnected or terminated.
MaxDisconnectionTime The maximum amount of time, in minutes, that a disconnected Remote Desktop Services session remains active on the RD Session Host server. After the specified number of minutes have elapsed, the session is terminated.
MaxIdleTime The maximum amount of time that the Remote Desktop Services session can remain idle, in minutes. After the specified number of minutes has elapsed, the session can be disconnected or terminated.
ReconnectionAction The action performed when reconnecting to an existing Remote Desktop Services session.
Possible Values:
0: Allow reconnect from any client
1: Allow reconnect from ONLY from the originating client
TerminalServicesHomeDirectory The root directory for the user. Each user on an RD Session Host server has a unique root directory. This ensures that application information is stored separately for each user in a multiuser environment.
TerminalServicesHomeDrive The root drive for the user. In a network environment, this property is a string that contains a drive specification (a drive letter followed by a colon) to which the UNC path specified in the TerminalServicesHomeDirectory property is mapped.
TerminalServicesInitialProgram The path and file name of the application that the user wants to start automatically when the user logs on to the RD Session Host server.
TerminalServicesProfilePath The roaming or mandatory profile path to be used when the user logs on to the RD Session Host server.
TerminalServicesWorkDirectory The working directory path for the user.

Simply use the attributes mentioned above to import or export Terminal Services related attributes.

Note:
    In order to export or import Terminal Services (Remote Desktop Services) related attributes, you must either install the Remote Server
    Administration Tools (RSAT, prior ADMINPACK) or register the DLL 'tsuserex.dll' on the computer where you are running NNS ADix.
    Use the following command to register the DLL tsuserex.dll: regsvr32 tsuserex.dll.
    Please take in mind that every OS has it's 'own' 'tsuserex.dll', so make sure that you use the right DLL for the OS you are using.

.top


 

Copyright © 2011 by NNS - Nigl Network Solutions