Detect GPT and MBR partitions with Powershell

Question:

Is there a way to tell if a disk has a GPT or an MBR partition with powershell?

Answer:

Using WMI

Using Diskpart

Source:

Detect GPT and MBR partitions with Powershell by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply