How can I tell if Windows is running in Safe Mode?
- by cwd
I have a Windows server that will sometimes reboot into safe mode after updates. I'm working on that issue but what I'd really like to know is how can I check to see if Windows is running in safe mode or not.
Ideally I would like to incorporate it into a script that would send a passive check to our Nagios box with the status.
Is there some environmental variable I can use or some way to get this information via the command line?