/// <summary> /// The ProcessRecord instantiates a MasterBootRecord Object /// and outputs all Partitions that are not of the EMPTY type /// </summary> protected override void ProcessRecord() { MasterBootRecord mbr = MasterBootRecord.Get(drivePath); if (mbr.PartitionTable[0].SystemID != "EFI_GPT_DISK") { WriteObject(mbr.GetPartitionTable(), true); } else { GuidPartitionTable gpt = new GuidPartitionTable(drivePath); WriteObject(gpt.GetPartitionTable(), true); } }