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?

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 off
if \{%1\}==\{\} @echo Syntax: TSDefInLng TerminalServer&goto :EOF
setlocal
set ts=%1
set ts=%ts:\=%
@echo REG ADD \\%ts%\HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /V IgnoreRemoteKeyboardLayout /T REG_DWORD /F /D 1
REG ADD \\%ts%\HKLM\SYSTEM\CurrentControlSet\Control\Keyboard Layout" /V IgnoreRemoteKeyboardLayout /T REG_DWORD /F /D 1
endlocal


Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish