How to start services in Windows Safe Mode

You have to start the computer in safe mode to debug, solve some issue or to test something. But when you start in safe mode, you notice that many services are missing.

It would be nice if you could use these services wouldn’t it? But could you?? Hell yeah you could.

You just gotto do some playing around with the registry.

So I’ll give an example (This is in Windows 7 btw),

I was doing some web development work with xampp where I used both mysql and apache services. But in safe mode I noticed these were not working.

If I try to go to services and start the service, I get an error
Error 1084: This service cannot be started in safe mode

So here’s what we do.

Start->Run->Regedit

image002

If you go to the following path

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SafeBoot

You’ll notice the entries Minimal and Network

image004

Minimal – will have the services that are used in Safe Mode

Network- will have the services that are used in Safe Mode with Networking

So… We can add the service we want under the preferred entry (Minimal or Network) and use it in it.

How to add the entry?

All the current services that are enabled under the Normal mode (not Safe Mode) are listed under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services

So in my case I saw the following entry under the above path,

image006

I wanted this to be available for me in Safe mode with Networking

So I added the key “mysql” as following

image008

Then added a new String with a value “Service” as following

image010

After this. Restart the computer and start xampp.
BOOM!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s