Q. How do I prevent the a new profile created the first time that a user logs onto a Terminal Server using Remote Desktop Connection from using the client computer default language setting instead of from the default user profile?

Jerold Schulman

September 11, 2006

1 Min Read
ITPro Today logo in a gray background | ITPro Today

When a user uses Remote Desktop Connection to log on to a Terminal Server for the first time, a new profile is created which inherits the Regional and Language Options settings from the default user profile, except that the Default input language setting from the computer that initiated the Remote Desktop Connection is used.

NOTE: If a user profile already exists, the Regional and Language Options settings in the existing user profile are applied to new users.

I have scripted TSDefInLng.bat to change this behavior to use the Default input language setting from the default user profile, but only if the Terminal Server is running Windows Server 2003 with at least Service Pack 1 installed.

The syntax for using TSDefInLng.bat is:

[call] TSDefInLng TerminalServer

Where TerminalServer is the NetBIOS computer name of the Terminal Server computer.

TSDefInLng.bat contains:

@echo offif {%1}=={} @echo Syntax: TSDefInLng TerminalServer&goto :EOFsetlocalset ts=%1set ts=%ts:=%@echo REG ADD \%ts%HKLMSYSTEMCurrentControlSetControlKeyboard Layout" /V IgnoreRemoteKeyboardLayout /T REG_DWORD /F /D 1REG ADD \%ts%HKLMSYSTEMCurrentControlSetControlKeyboard Layout" /V IgnoreRemoteKeyboardLayout /T REG_DWORD /F /D 1endlocal


Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like