JSI Tip 8453. How can I hide user names on the Windows XP Welcome screen?

I have scripted NoWelcome.bat to hide user names on the Windows XP Welcome screen.

The syntax for using NoWelcome.bat is:

NoWelcome User1 \[User2 . . . UserN\]

Where only the first user name is required.

NoWelcome.bat contains:

@echo off
if \{%1\}

\{\} goto syntax ( @echo REGEDIT4 @echo. @echo \[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\SpecialAccounts\UserList\] )>"%TEMP%\NoWelcome.tmp" :loop if \{%1\}

\{\} goto finish set user=%1 shift set user=%user:"=% @echo "%user%"=dword:00000000>>"%TEMP%\NoWelcome.tmp" goto :loop :finish @echo.>>"%TEMP%\NoWelcome.tmp" @echo.>>"%TEMP%\NoWelcome.tmp" regedit /s "%TEMP%\NoWelcome.tmp" del /q "%TEMP%\NoWelcome.tmp" endlocal goto :EOF :syntax @echo Syntax: NoWelcome User1 \[User2 . . . UserN\] endlocal

Hide 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.