Q. How do I prevent Internet Explorer from creating personalized settings for each new user?

When a user first logs on, Internet Explorer creates personalized settings for that user.

This behavior happens for every new user, even if the default user profile has been customized and does not need changing.

Using REG.EXE, built into Windows XP, Windows Server 2003, and later operating systems, or installed from the Windows 2000 Support Tools, I have scripted DelSTUBPATH.bat to prevent this behavior.

The syntax for running DelSTUBPATH.bat is:


DelSTUBPATH.bat contains:

@echo off
setlocal EnableDelayedExpansion
set KEY="HKEY_LOCAL_MACHINE\Software\Microsoft\Active Setup\Installed Components"
set FND=find /i %KEY%
for /f "Tokens=*" %%a in ('reg query %KEY% /s^|%FND%') do (
 set SP=N
 for /f "tokens=*" %%b in ('reg query "%%a"^|find /i "STUBPATH"^|find "REG_"') do (
  set SP=Y
 if "!SP!" EQU "Y" reg delete "%%a" /V STUBPATH /F

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.