我有一个有大量磁盘的VM(C:D:E:F:G:H:I:J:...),大小相同
我需要使用命令Set-HardDrive
追加One,但是如何确定它是什么VMWareDrive
EDIT 我用WMI获得UUID
$wmidisk = Get-WmiObject -Class Win32_DiskDrive -ComputerName $ComputerName
$UUID_OS = $wmidisk.SerialNumber
我在VMWare中有相同的UUID
$Device_VMWare = (get-vm $ComputerName | get-view).Config.Hardware.Device | ?{$_.Backing.Uuid}
$UUID_VMWare = ($Device_VMWare.backing.uuid).replace('-','')
但我缺乏与光盘的对应关系