Restrat computer into safemode

Hewlett-packard / Sd2100
January 1, 2010 at 23:41:01
Specs: Windows 7, 1024
is it possiable to have a batch file if ran have the computer restart and go into safemode?

if so what parameters would i use for Networking, non networking, command promt only?

thank you

See More: Restrat computer into safemode

Report •

January 3, 2010 at 14:40:52
Never tried myself, but you can change BOOT.INI with a special keyword, causing it to boot in safe mode. Have a look here :

I'm pretty sure it would work, but you have to mess with boot.ini, which is dangerous. And note that it stays booting in safe mode, this way.

You could create one script that does the above (change boot.ini), and you could have a script started on EACH startup, which would restore the "good" BOOT.INI
This can be done via "gpedit.msc" (Local Computer Policy \ Computer Configuration \ Windows Settings \ Scripts (Startup/Shutdown). It may be as easy as copying predefined files :


if not exist C:\safemode_boot.ini copy C:\boot.ini C:\safemode_boot.ini
copy /Y C:\safemode_boot.ini C:\boot.ini


if not exist C:\normalboot.ini copy C:\boot.ini C:\normalboot.ini
copy /Y C:\normalboot.ini C:\boot.ini

Report •

January 4, 2010 at 02:46:06
Note some things:

- In the above, the idea is to change the content of C:\safemode_boot.ini (and only that one)

- I said to include "normalboot.cmd" on the list of automatic executed scripts on either startup or shutdown, but just in Safe mode, he may not run them. So, you may need to find another solution there, to get rid of Safe mode config. Manually running normalboot.cmd will do the trick.

- If somebody (or something) changes C:\boot.ini, these changes may be lost, since C:\normalboot.ini would become master. You can protect yourself against unwanted changes in many ways : read-only property, comparing content of files, keeping CRC check of files, ...

Report •

January 4, 2010 at 13:02:08
boot.ini doesn't exist in Vista or Win7. He'd probably have to use bootcfg.exe

Report •

Related Solutions

Ask Question