Windows Tip Sheet

Taking Command of Safe Mode

Enable Windows Installer in Safe Mode to troubleshoot with these tricks.

Ever have to start Windows in Safe Mode and install some software to troubleshoot or correct the problem? Or uninstall the application that was causing the problem? Good luck: Safe Mode disables Windows Installer. Sigh. Try and you’ll get a “This service cannot be started in Safe Mode” error. But what if you really want to? Trick Windows.

Trick number one: Tell Windows that Windows Installer is a “safe” service. Get into the command line and run REG ADD “HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\
Minimal\MSIServer” /VE /T REG_SZ /D “Service” net start msiserver
. Long, I know, but it’ll list the Windows Installer Service as legitimate for Safe Mode. You can actually do this trick for any service, but don’t overdo it: Safe Mode is supposed to be minimal to make sure Windows can start.


Trick number two: Run SafeMSI.exe (link included below). It’ll start the service in Safe Mode. Wow, that was easy. Bravo to Harry Bates, its author, and thanks to the folks at JSI FAQ for hosting it.

I like the second trick better because it leaves the Windows Installer service disabled normally, but it lets you run it if you absolutely need to do so in order to uninstall something from within Safe Mode. In the event that Windows Installer was causing the problem that forced you into Safe Mode to begin with (unlikely, but that’s why the service isn’t on the safe list by default), the second trick will still allow Safe Mode to get you going in a minimal configuration.

More Resources:


About the Author

Don Jones has more than a decade of professional experience in the IT industry. He's the author of more than 30 IT books, including Windows PowerShell: TFM; VBScript, WMI, and ADSI Unleashed; Managing Windows with VBScript and WMI; and many more. He's a top-rated and in-demand speaker at conferences such as Microsoft TechEd and TechMentor, and writes the monthly Windows PowerShell column for Microsoft TechNet Magazine. Don is a multiple-year recipient of Microsoft's Most Valuable Professional (MVP) Award with a specialization in Windows PowerShell. Don's broad IT experience includes work in the financial, telecommunications, software, manufacturing, consulting, training, and retail industries and he's one of the rare IT professionals who can not only "cross the line" between administration and software development, but also between IT workers and IT management.

Reader Comments:

Fri, Jan 22, 2010

This got me out of a lot of potential trouble! Thanks!

Tue, Dec 29, 2009 Rich Pearson UK

you can download safemsi.exe from compusafe.me.uk/downloads/safemsi.exe

Thu, Oct 22, 2009 Leshi San Ramon, Ca

I have an HP Pavilion dv9000 with Windows XP and cannot get rid of vongo. I tried both options and nothing works. And you can no longer download: SafeMSI.exe. Please help!

Thu, May 21, 2009 ANELISA GAUTENG(JHB)

EVER SINCE I WAS ON THIS SITE I DID NOT GET ANY HELP SO CAN YOU ALL PLEASE GIVE ME MY PRODUCT KEW I HAVE AN ASSIGNMENT DUE IN THE NEX TWO DAYS

Wed, Oct 15, 2008 Matt thousand oaks

Ya the link is broken. The correct command is REG ADD HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer /VE /T REG_SZ /D Service There are no quotations. Press Enter then the next command is net start msiserver again no quotations.

Wed, Sep 10, 2008 doug Anonymous

link to SafeMSI.exe no longer works. Is there somewhere else to get this utility?

Tue, Jun 24, 2008 Gaz Anonymous

Me too :-(

Tue, Jan 1, 2008 Anonymous Anonymous

neither of the option works.
i have winXP pro sp2.... help me PLEASE

Tue, Nov 13, 2007 Anonymous Anonymous

very useful information

Mon, Sep 10, 2007 bizmarks Anonymous

To all folks who get too many parameters,You have to put "service" net start msiserver inside quotes.Then the command becomes : REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /D ""Service" net start msiserver"
Hope this helps

Thu, Aug 9, 2007 elman Anonymous

did not work for me. none of them

Fri, Mar 16, 2007 Anonymous Anonymous

I get the same error as someone above: Error: Too many command-line parameters. Using XP pro here with SP2.

Wed, Feb 28, 2007 garydapogi philippines

awesome!!! very much helpfull. just execute the file and windows installer service was enabled. 2 thubms up!!!

Wed, Feb 14, 2007 ashutosh new delhi

hi i am working as technical support officer for microsoft windows vista technical support for microsoft.
This article is very useful.

Sat, Jan 6, 2007 Carrie Omaha

I get an error that states: Too many command-line parameters.
What am I doing wrong?

Sat, Dec 30, 2006 john in a store

Best tip that I've seen in a long while! Thanks!

Wed, Feb 15, 2006 Anonymous Anonymous

Very helpful information

Wed, Aug 24, 2005 Berdon SDSU

Wonderful! Simply wonderful!

Fri, Aug 5, 2005 Don Seydel Carmel, Ca

Saved my Skin! Fixed serious standard mode no-install problems. I expanded your tip to make services AutoUpdate &
BITS start in the Network Safe Mode, which let me finally install a bunch of Windows updates. Thanks!!!

Mon, Jun 6, 2005 Dan Hong Anonymous

CORRECTION: Fixed the registry path to reflect reader's suggestion. Thanks, Brian! - Dan Hong, associate Web editor

Mon, Jun 6, 2005 Anonymous Anonymous

Best

Thu, Jun 2, 2005 Anonymous Anonymous

Good information.

Thu, Jun 2, 2005 Brian Cook Fort Worth, TX

Don, the correct Registry path item should be;

REG ADD "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /D "Service" net start msiserver

You omitted the System folder from the line. Without it adds an unusable parameter for a SafeBoot.

Great tip, this will be something we will institute soonest.

Brina

Thu, Jun 2, 2005 nick rhodes uk

Brilliant

Add Your Comment Now:

Your Name:(optional)
Your Email:(optional)
Your Location:(optional)
Comment:
Please type the letters/numbers you see above