Reply to Message

View discussion in a popup

Replying to:
Mike_Yazbeck
Enthusiast
Enthusiast

Matching VM Disks to Windows Disk for SCSI Controller 1 (scripts online always work for controller 0)

Hi Folks Smiley Happy

I am looking to get to the bottom to the bottom of matching VMWare hard disks to disks in Windows using WMI.

So far all scripts I have found work with SCSI Controller 0, but it fails when trying to get details on SCSI Controller 1 and for some reason the details in WMI - it always incorrectly reports it as controller 0 even when its not.

I found this article which is great, but surely there is a Windows WMI way to get this to compare?

echo( "hello wordl" :disappointed_face: Match virtual hard disks in Virtual Center with their disk labels in Windows 20...

The other thing I was wondering was based on the article above, is it possible to get the location of the VMX file and read its contents into a variable so that you can match the "scsi1.pciSlotNumber" value to the number reported in WMI?

I have scoured the net and this is the closest thing I can find to unpicking this issue.

Any help would be greatly appreciated :smileygrin: