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