Powershell can't reset disk

I'm building servers with disks pre-formatted. I want to use Powershell to reset the disks so they can be used in the primordial pool and be eligible for Storage Spaces. In the Storage Spaces UI, I just click reset and it changes the Partition from MBR to Unknown. That works fine, now I try to do the same with Powershell...

Get-Disk --> shows the partition style is MBR

Get-PhysicalDisk | ft FriendlyName,CanPool --> shows CanPool = False

Reset-PhysicalDisk physicaldisk1 --> has no effect!

Initialize-Disk 1 --> error "the disk is already initialized"

Remote-Partition 1 --> prompts endlessly for partitionnumber, there is only 1 partition

I appreciate any tips.

September 11th, 2015 3:21pm

Hi Scott1,

Thanks for your post.

Could you follow the article about use Power Shell to Initialize Disks

http://blogs.technet.com/b/heyscriptingguy/archive/2013/05/29/use-powershell-to-initialize-raw-disks-and-partition-and-format-volumes.aspx

Besides, you could also post in Powershell Forum for more support about if there's some wrong scripts.

https://social.technet.microsoft.com/Forums/windowsserver/en-US/home?forum=winserverpowershell

Best Regards,

Mary Dong

Free Windows Admin Tool Kit Click here and download it now
September 14th, 2015 1:42am

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

Other recent topics Other recent topics