Powershell中获取所有磁盘盘符的方法

2019-09-30 11:33:38王旭

快速获取当前电脑所有磁盘:


#requires -Version 1
[Environment]::GetLogicalDrives()

结果如下:

PS>
C:
D:
E:
F:
G: