Windows Server存储池,虚拟磁盘在系统启动后不自动连接需要手动连接

Windows Server存储池,虚拟磁盘在系统启动后不自动连接,需要手动连接

Win2012

使用PowerShell执行命令以下命令,列出IsManualAttach属性为True的虚拟磁盘,当系统重新启动的时候这些磁盘将不自动重新连接

handlebars 复制代码
Get-VirtualDisk | Where-Object {$_.IsManualAttach --eq $True}

使用以下命令设置所有不自动重新连接的虚拟磁盘自动连接

handlebars 复制代码
Get-VirtualDisk | Where-Object {$_.IsManualAttach --eq $True} | Set-VirtualDisk --IsManualAttach $False

Win2019

handlebars 复制代码
Get-VirtualDisk | Set-VirtualDisk -ismanualattach $false
相关推荐
提笔惊蚂蚁14 小时前
终端VS命令解释器(Linux & Windows)
linux·运维·windows
昏睡红猹16 小时前
从0.99到1实现一个Windows上的虚拟hid键盘设备
windows·windows driver
曾经的三心草18 小时前
微服务的编程测评系统13-我的竞赛列表-elasticSearch
windows·微服务·架构
2501_920047031 天前
nginx-自制证书实现
运维·windows·nginx·https
农场主John1 天前
(栈)Leetcode155最小栈+739每日温度
windows·python·算法·leetcode·
天庭鸡腿哥1 天前
比Windows系统自带更强大,好用!
windows·django·pygame
XINGLOO1 天前
Mac怎么连接VPS?可以参考这几种方法
windows·ssh·mac
易我数据恢复大师1 天前
mac如何运行windows程序?性能党vs便捷党选择指南
windows·macos·mac·mac运行windows程序·运行windows程序
m0_738120721 天前
CTFshow系列——命令执行web38-40
前端·windows·安全·web安全