Re: computername\username problem



Hello Yaro,

From the description, you want to usernames are saved when users attempt to
logon local. However, when users access the computer through RDP username
textbox should be blank.

Once you logon to the terminal server successfully from the client the RDP
client will save the last logon username in the registry value
"usernamehint" in:

[HKCU\software\Microsoft\Terminal Server Client\Servers\<servername>\]

It is user specific and will be re-created every time you logon to TS
successfully.

TS connection experience improvements based on RDP 6.0 client customer
feedback
http://blogs.msdn.com/ts/archive/2007/03/28/ts-connection-experience-improve
ments-based-on-rdp-6-0-client-customer-feedback.aspx


However, we can configure the TS to "Always user the following logon
information" and leave blank in the User name and password. Then RDP
clients that connects to the TS will force to use a blank in the User name
and password that has the same effect as not saving username. To enable the
"Always user the following logon information", you need to set the registry
value as follows:

1. On the terminal server, click Start->Programs->Admin
Tools->Terminal Services->Terminal Services Configuration -> Under
"Connections", select RDP-Tcp-> Right Click -> Properties > Select "Log On
Settings" Tab

2. Select the Radio Button "Always use the following logon
information", and type the domain name in the "Domain" text box. Click OK.

The corresponding registry value is the following:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp]
fInheritAutoLogon 0 (Always use the following logon
information)

If you need to deploy this setting to all clients, you may consider
deploying a startup script to deploy this setting to all domain clients:

1. Configure logon setting on SBS server as required.
2. Export the [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp] registry key to registry file and modify this
file to remove unrelated items. The end result is similar to the following:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp]

"fInheritAutoLogon"=dword:00000000

3. Put this registry file in a share folder.
4. Create a new Windows Batch File with the following command:

regedit /s <Path of the registry file>

For example, if the path to the registry file is \\server\share\TS.reg, you
can include the command below in the batch file:

regedit /s \\server\share\TS.reg

5. Create a GPO to deploy a startup script to run the newly created batch
file to all domain clients.

Hope it helps. If you have any questions or concerns, please do not
hesitate to let me know.



Best regards,
Miles Li

Microsoft Online Partner Support
Microsoft Global Technical Support Center

Get Secure! - www.microsoft.com/security
=====================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=====================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.