Using PowerShell to check default operating system

How does one use PowerShell to check whether a computer is configured to dual boot or boot off of more than one operating system?

I'm thinking I need to make a WMI call from within PowerShell to check the boot configuration but I'm not certain of what to look for or how to go about it. Bing and other search engines are failing me.

The systems I'll be checking are Windows 7, 2008 R2, 2012 R2, and possibly Vista, XP, and 2003.

Can someone help please?

February 20th, 2015 12:18am

Invoke-Command -Script {BCDEDIT} -Computer <some remote PC>

Free Windows Admin Tool Kit Click here and download it now
February 20th, 2015 12:48am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics