Ian*_*oyd 5 windows storage-spaces windows-server-2012
在过去的某个时刻,Windows Server 2012 机器上的存储空间决定“退役”池中的两个驱动器:
我不希望驱动器退役。我希望你继续使用它们。
如何将驱动器的状态从 更改Retired
为AutoSelect
?
大致如下:
#Assign the "retired" disks to a variable
$retiredDisks = Get-PhysicalDisk | Where-Object { $_.Usage -eq 'Retired'}
#Mark the retired disks as "AutoSelect"
$retiredDisks | Set-PhysicalDisk -Usage AutoSelect
Run Code Online (Sandbox Code Playgroud)
也许这会有所帮助
设置-PhysicalDisk -FriendlyName 驱动器名称 -Usage AutoSelect
参考的详细链接: http ://powershellhelp.space/commands/set-physicaldisk-psv5.php
归档时间: |
|
查看次数: |
2079 次 |
最近记录: |