I'm trying to attach a storage space in my server but am receiving and access denied error. The back story is that the storage space was working fine on windows home server 2012, but then I paved the system drive (not part of the storage space) and installed a fresh copy of WHS2012 R2. The storage space no longer appears to be available. Any idea how the permissions can be fixed?
PS C:\Users\Admin> get-virtualdisk
FriendlyName ResiliencySettingNa OperationalStatus HealthStatus IsManualAttach Size
me
------------ ------------------- ----------------- ------------ -------------- ----
Documents Mirror Detached Unknown True 1.81 TB
PS C:\Users\Admin> connect-virtualdisk -FriendlyName "Documents"
connect-virtualdisk : Access denied
At line:1 char:1
+ connect-virtualdisk -FriendlyName "Documents"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (StorageWMI:ROOT/Microsoft/...SFT_VirtualDisk) [Connect-VirtualDisk],
CimException
+ FullyQualifiedErrorId : StorageWMI 40001,Connect-VirtualDisk
EDIT: For those coming after me, see this artcle: http://windowsitpro.com/systems-management/q-after-i-reinstalled-windows-server-2012-my-storage-spaces-are-no-longer-writabl
Note the important step about set-virtualdisk -IsManualAttach $False to get the storage space to automatically show up.