Im just wondering if there is a way to reboot the windows machine in safemode from command prompt.
Looked at the man page of
shutdown but it is not there.
In Windows Vista and later, the command
will enable safe mode (of course you must run this from an administrative command prompt) and the command
will turn it off again.
I'm not aware of a built-in command line method. You could in theory write one that sets the boot.ini flag and reboots the machine, though.