Computer and Software Support


uniqueid 

DiskPart 

This is from Microsoft Technet. If you want to see it at their site, click here

To access DiskPart, click here

To read this from Microsoft, click here

Applies To: Windows Server 2008, Windows 7, Windows Server 2008 R2, Windows Server 2012 R2, Windows Server 2012, Windows 8

displays or sets the GUID partition table (GPT) identifier or master boot record (MBR) signature for the disk with focus.

Important - This Diskpart command is not available in any edition of Windows Vista

Syntax: uniqueid disk [id={<dword> | <GUID>}] [noerr]

Parameters

Parameter Description
id={<dword> | <Guid>} For MBR disks, specifies a four-byte (DWord_ value in hexadecimal form for the signature. For GPT disks, specifies a GUID for the identifier.
noerr For scripting only. when an error is encountered, DiskPart continues to process commander as if the error did not occur. Without this parameter, an error causes DiskPart to exit with an error code.

 Remarks

  • This command works on basic and dynamic disks.

  • A disk must be selected for this command to succeed. Use the select disk command to select a disk and shift the focus to it.

Examples

  • To display the signature of the MBR disk with focus, type:

    • Uniqueid disk

  • To set the signature of the MBR disk with focus to 5f1b2c36, type

    • uniqueid disk id=5f1b2c36

  • To set the identifier of the GPT disk with focus to baf784e7-6bbd-4cfb-aaac-e86c96e166ee, type:

    • uniqueid disk id=baf784e7-6bbd-4cfb-aaac-e86c96e166ee