Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含挂载点的 lun 名称列表。我正在寻找通过编程找到相应的 lun 编号/磁盘编号(我们在磁盘管理中看到的相同)
Disk 0 C: Disk 1 D:
请提供任何提示 - 希望通过 powershell 执行此操作
我会考虑使用 WMI 来获取这些信息。Win32_diskdrive 是一个很好的查看位置。
$Drives = gwmi Win32_diskdrive