Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Restart in safe mode

20 Mar 2011   #1

windows 7 Ultimate 32bit
Restart in safe mode

is it possible to have a batch file that, when run, causes the computer to restart and go into safe mode with 7?

My System SpecsSystem Spec
20 Mar 2011   #2

Win 7 Ult + Starter, XP Pro +Home, 2kAS, Linux Mint 8, SuperOS

Start button, type msconfig, select the boot tab and check the "safe boot" box, and whatever other options you require.

The next boot will go into safe mode, with whatever options you have selected.
My System SpecsSystem Spec
21 May 2011   #3

Windows 7 64-bit Windows 7 32-bit

i dont suppose you know the dos commands to do that? So I could make a batch file to do it. Also do you know if it will only do it once or will i have to revert it when im done in safe mode?
My System SpecsSystem Spec

21 May 2011   #4

Windows 7 Pro x64 SP1

Quote   Quote: Originally Posted by djpatch View Post
is it possible to have a batch file that, when run, causes the computer to restart and go into safe mode with 7?
The use of the shutdown command in a batch file works fine.
It looks like you will need to add the options for the reboot for safe mode as a prior poster recommended. I am not sure exactly what your going to do with this
information. Booting into safe mode restricts lots of things.


Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e] [/f]
[/m \\computer][/t xxx][/d [p|u:]xx:yy [/c "comment"]]
No args Display help. This is the same as typing /?.
/? Display help. This is the same as not typing any options.
/i Display the graphical user interface (GUI).
This must be the first option.
/l Log off. This cannot be used with /m or /d options.
/s Shutdown the computer.
/r Shutdown and restart the computer.
/g Shutdown and restart the computer. After the system is
rebooted, restart any registered applications.
/a Abort a system shutdown.
This can only be used during the time-out period.
/p Turn off the local computer with no time-out or warning.
Can be used with /d and /f options.
/h Hibernate the local computer.
Can be used with the /f option.
/e Document the reason for an unexpected shutdown of a computer.
/m \\computer Specify the target computer.
/t xxx Set the time-out period before shutdown to xxx seconds.
The valid range is 0-315360000 (10 years), with a default of 30.
If the timeout period is greater than 0, the /f parameter is

This is of course a redirect of the shutdown command to a file. Partial.

My System SpecsSystem Spec

 Restart in safe mode

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar help and support threads
Thread Forum
BSOD and multiple restart. can access only through safe mode
when i switch on my laptop BSOD comes and the system restarts. The Stop message is 0x0000007E(0xC0000005,0x8E678EF4,0x80786688, 0x80786260) i have run the memory and RAM diagnostics, everything is fine. I hve ubuntu installed and that runs perfectly. i have used the SF diagnostic tool and...
BSOD Help and Support
Restart in Safe Mode Icon
Can someone explain to me how I can make an icon that will restart my computer in safe mode? -thank you
General Discussion
Windows restart loop while booting. Safe mode crashes.
Hi, I am here once again as my computer has decided to die again. The problem is that when I boot my PC it will go black and restart after getting to the windows logo boot part. If I try Safe mode it will get to SYSTEM32\DRIVERS\DISK.SYS and then just bluescreens and restarts again. Before...
General Discussion
Black screen during 7 startup....restart with BSOD in Safe Mode
Hello everyone, I have a Dell Inspiron with Windows 7 Home 64-bit. Here's the problem, that just started out of the blue: During startup, I get the Dell screen and the Windows logo. It gets to the point where I see the cursor (just before it should get to the logon screen), and the screen...
BSOD Help and Support
Failure to show login screen after forced restart (Same with safe mode
My Dad was using one of my 64 bit PCs when a program froze up and he decided to force restart the computer (Pro move, I know). Now I restart and am unable to get to the login screen. Using both safe mode and normal mode gives me the same result. After I choose one of those options, I see the...
BSOD Help and Support
Restart from Safe Mode and computer dies in a minute
my computer will stay on for days, in safe mode. restart it dies in about a minute. whether or not i do anything. this problem has been intermittent, then went away for a few days after a adware scan (?) no idea why. now it is back. can't do anything. this computer was basically new at...
BSOD Help and Support

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 17:29.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App