Auto attach VirtualDisk on Storage Pool after reboot on Windows Server 2016

View disk information

Get-Disk
Get-PhysicalDisk
Get-VirtualDisk
Get-StoragePool

 

Check if current setting is set to ManualAttach

Get-VirtualDisk | Where-Object {$_.IsManualAttach –eq $True}

 

Set IsManualAttach to false to automatically mount after restart

Get-VirtualDisk | Where-Object {$_.IsManualAttach –eq $True} | Set-VirtualDisk –IsManualAttach $False

 

Reboot to confirm if StorageSpace VirtualDisk re-attaches correctly.

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top