JSI Tip 10142. How can I prevent Windows XP from displaying the unread e-mail message on the Welcome screen?

The Welcome screen is available on Window XP Home Edition and on Window XP Professional Edition that is NOT joined to a domain.

The Welcome screen may display the number of unread e-mails next to each user, if their e-mail program updates the information.

I have scripted UnreadMail.bat, which runs from an Administrator's logon, without any parameters, to remove the count of unread emails and prevent the programs from posting it.

NOTE: UnreadMail.bat uses the corrected version of SubInAcl.exe, which must be installed in a folder that is in your PATH.

UnreadMail.bat contains:

@echo off
for /f "tokens=*" %%a in ('reg query HKEY_USERS^|find "\"^|find /I /V "_Classes"') do (
 call :doit %%a>nul 2>&1
set key=%1\Software\Microsoft\Windows\CurrentVersion\UnreadMail
set OK=N
for /f "Tokens=*" %%x in ('reg query %key%^|find /i "HKEY_USERS\"') do (
 set OK=Y
if "%OK%" EQU "N" goto :EOF
reg delete %key% /f
reg add %key% /f
subinacl /nostatistic /keyreg %key% /grant=System=R

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.