Always display a fix user name in the Log On to Windows dialog box?

@

@(none)

Can I change the local policy to always display a fix user name (say,
"visitor") in the Log On to Windows dialog box?
 
S

Sharon F

Can I change the local policy to always display a fix user name (say,
"visitor") in the Log On to Windows dialog box?

The obvious thing to do is to create an account named Visitor. Place it
into the user group that you want it in. Setup XP to use the Welcome
screen. That account name will be added to the Welcome screen.

Tweakui for XP can be used to control what user accounts will appear or not
appear on the welcome screen. TweakUI is one of the Power toys for XP. This
URL links to the version that is *only* for XP with SP1:
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

If you do not have SP1, the earlier version can be found at:
http://download.microsoft.com/download/whistler/Install/2/WXP/EN-US/TweakUiPowertoySetup.exe
 
G

Guest

Sharon said:
The obvious thing to do is to create an account named Visitor. Place it
into the user group that you want it in. Setup XP to use the Welcome
screen. That account name will be added to the Welcome screen.

Tweakui for XP can be used to control what user accounts will appear or not
appear on the welcome screen. TweakUI is one of the Power toys for XP. This
URL links to the version that is *only* for XP with SP1:
http://www.microsoft.com/windowsxp/pro/downloads/powertoys.asp

If you do not have SP1, the earlier version can be found at:
http://download.microsoft.com/download/whistler/Install/2/WXP/EN-US/TweakUiPowertoySetup.exe

Thanks, however, i cannot use the welcome screen because I must install
the client for Netware. Any other way to do it?
 
S

Sharon F

Thanks, however, i cannot use the welcome screen because I must install
the client for Netware. Any other way to do it?

Netware forces the use of the old Win2000 style logon prompt. No way around
that. There is a setting in Local Security Settings (secpol.msc) that can
be used to display the name of the last user that was logged on: Local
Policies> Security Options> Interactive Logon: Do not display last user
name

That's about as close as you can get using the classic logon screen and if
there are other users on this computer, it's an option that will not fit
your needs.
 
T

Torgeir Bakken (MVP)

none said:
Can I change the local policy to always display a fix user name (say,
"visitor") in the Log On to Windows dialog box?

Hi

This *might* work if you are running WinXP Pro:

Create e.g. a computer startup script that writes "visitor" to the
registry value "DefaultUserName" under the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

This is the value that is display by the system in the logon box.


This should work at least:

Alternatively, if everybody else that is logging on is local
administrators (the user "visitor" does not need to have it),
you can from the Run key in registry launch a vbscript or run
'regedit.exe /s "<some reg file>"' to import a registry file
that sets this value. This way you avoid configuring a startup
script.


Here is a vbscript that will set this value:

Set oShell = CreateObject("WScript.Shell")
On Error Resume Next
oShell.RegWrite "HKLM\SOFTWARE\Microsoft\Windows NT\" _
& "CurrentVersion\Winlogon\DefaultUserName", "visitor", "REG_SZ"
On Error Goto 0


How to enable computer startup script for Win2k/WinXP Pro (it will
run under the system context that has administrator rights):

From the Start menu Run dialog, open: gpedit.msc

Then, under "Computer Configuration",
open Windows Settings\Scripts (Startup/Shutdown)
(double click on "Startup", Add...).


More info in Tip 2147 in the 'NT Reg Hacks' at http://www.jsiinc.com

JSI Tip 2147. Windows 2000 Startup/Shutdown, Logon/Logoff scripts?
http://www.jsiinc.com/sube/tip2100/rh2147.htm


--
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/community/scriptcenter/default.mspx
 
T

Torgeir Bakken (MVP)

Torgeir Bakken (MVP) said:
This *might* work if you are running WinXP Pro:

Create e.g. a computer startup script that writes "visitor" to the
registry value "DefaultUserName" under the key
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon

This is the value that is display by the system in the logon box.

This should work at least:

Alternatively, if everybody else that is logging on is local
administrators (the user "visitor" does not need to have it),
you can from the Run key in registry launch a vbscript or run
'regedit.exe /s "<some reg file>"' to import a registry file
that sets this value. This way you avoid configuring a startup
script.

Note that if you can use the Run key method in registry, this
procedure will work for WinXP Home as well, is is the computer
startup script part that is not available for WinXP Home.


--
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/community/scriptcenter/default.mspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top