Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Set default username at Logon screen

3 views
Skip to first unread message

Lague@discussions.microsoft.com K. Lague

unread,
Apr 21, 2005, 3:46:01 PM4/21/05
to
Hi,

I'm running an XP pro environment within an active directory domain. I have
multiple users sharing the same computer but I need to have one
account/username to always displayed as the default username on bootup at the
logon screen.

I don't wish to implement Auto Login but is there a way to hard code the
default username at logon?

Thanks,

Kim L.

Lanwench [MVP - Exchange]

unread,
Apr 22, 2005, 12:34:26 AM4/22/05
to

I don't know of a group policy object you can use to define this -
personally, I like to enable the policy that disables "display last user
login name", , as I *want* people to remember their login names. But you
might want to post in a GP group for more help....
>
> Thanks,
>
> Kim L.

Torgeir Bakken (MVP)

unread,
Apr 22, 2005, 8:50:58 AM4/22/05
to
K. Lague wrote:

Hi

Run the VBScript below from e.g. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft
\Windows\CurrentVersion\Run with the following command:

wscript.exe "path to .vbs file here"


'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")

' adjust to correct user/domain
sUserName = "SomeLogonNameHere"
sDomain = "SomeDomainNameHere"

oShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" _
& "\Winlogon\DefaultUserName", sUserName

oShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" _
& "\Winlogon\DefaultDomainName", sDomain

'--------------------8<----------------------


WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp

--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx

Lague@discussions.microsoft.com K. Lague

unread,
Apr 22, 2005, 8:30:05 PM4/22/05
to
Thanks, I'll give it a try.

KL.

0 new messages