NOTE: See Windows 2000 Startup/Shutdown, Logon/Logoff scripts.

NOTE: The following script uses REG.EXE, built into Windows XP, and Windows Server 2003, or REG.EXE from the Windows 2000 Support Tools on the CD-ROM.

@echo off
setlocal
::
:: You current logon script instruction go here.
::
set ckey="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu"
set nkey="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel"
@echo \[Shell\]>"%TEMP%\Toggle.scf"
@echo Command=^2>>"%TEMP%\Toggle.scf"
@echo \[Taskbar\]>>"%TEMP%\Toggle.scf"
@echo Command=ToggleDesktop>>"%TEMP%\Toggle.scf"
@echo With CreateObject("WScript.Shell")>"%TEMP%\Refresh.vbs"
@echo.  .Sendkeys "\{F5\}">>"%TEMP%\Refresh.vbs"
@echo.   WScript.Sleep 250>>"%TEMP%\Refresh.vbs"
@echo End With>>"%TEMP%\Refresh.vbs"
call :MyCmp>nul 2>&1
call :MyNWP>nul 2>&1
call :MyDoc>nul 2>&1
"%TEMP%\Toggle.scf"
cscript //nologo "%TEMP%\Refresh.vbs"
"%TEMP%\Toggle.scf"
del /q "%TEMP%\Toggle.scf"
del /q "%TEMP%\Refresh.vbs"
endlocal
goto :EOF
:MyCmp
REG ADD %ckey% /V "\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}" /T REG_DWORD /F /D 0
REG ADD %nkey% /V "\{20D04FE0-3AEA-1069-A2D8-08002B30309D\}" /T REG_DWORD /F /D 0
goto :EOF
:MyNWP
REG ADD %ckey% /V "\{208D2C60-3AEA-1069-A2D7-08002B30309D\}" /T REG_DWORD /F /D 0
REG ADD %nkey% /V "\{208D2C60-3AEA-1069-A2D7-08002B30309D\}" /T REG_DWORD /F /D 0
goto :EOF
:MyDoc
REG ADD %ckey% /V "\{450D8FBA-AD25-11D0-98A8-0800361B1103\}" /T REG_DWORD /F /D 0
REG ADD %nkey% /V "\{450D8FBA-AD25-11D0-98A8-0800361B1103\}" /T REG_DWORD /F /D 0