JSI Tip 7755. How do I hide the Outlook Express icons in a logon script?

In tip 7753, I documented How do I hide Outlook Express icons if I have already rolled out Windows 2000 SP4 or Internet Explorer 6?

In tip 7754, I documented How do I hide the Outlook Express icons on my Windows XP clients?

I have scripted HideOE.bat that you can call in a logon script.

The syntax for using HideOE.bat is:

call <PathToHideOE.bat>

where <PathToHideOE.bat> is the fully qualified path to the HideOE.bat file, as in call %LOGONSERVER%\NETLOGON\HideOE.bat

HideOE.bat contains:

@echo off
setlocal
set cv="%TEMP%\$$CV.reg"
set sys32=%SystemRoot%\system32
regedit /a %cv% "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"
for /f "Tokens=1,2 Delims==" %%u in ('type %cv% ^|Findstr /l "5.0 5.1"^|Findstr /i /l CurrentVersion') do (
 if %%u EQU "CurrentVersion" call :ver %%v
)
del /q %cv%
endlocal
goto :EOF
:ver
set version=%1
set version=%version:"=%
if "%version:~0,3%" EQU "5.0" "%Sys32%\rundll32.exe" "%Sys32%\shell32.dll",OCInstall HideOE
if "%version:~0,3%" EQU "5.1" "%Sys32%\shmgrate.exe" OCInstallHideOE



Hide comments

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