RPO
RPO

Reputation: 3

Usage of powershell Set-Disk on USB attached devices

I try to run the following statements on an usb attached device :

Clear-Disk 2 -RemoveData -RemoveOEM -Confirm:$False
Set-Disk -Number 2 -PartitionStyle MBR

When the device is a usb stick (flash disk), the process completes normally.

However, when the device is a usb hdd or ssd, the Set-Disk fails:

Set-Disk: Not Supported
Activity ID: {dac2954a-7cb3-0000-c07d-61dbb37cdb01}

What did i wrong?

As a workaround, I can use diskpart with the convert MBR command?

Upvotes: 0

Views: 67

Answers (1)

DarbOverreach
DarbOverreach

Reputation: 1

Have you tried initializing the disk and setting the PartitionStyle to MBR?

Clear-Disk 2 -RemoveData -RemoveOEM -Confirm:$False
Initialize-Disk -Number 2 -PartitionStyle MBR
Set-Disk -Number 2 -PartitionStyle MBR

Upvotes: 0

Related Questions