Match correctly windows disk to vmware harddisk

This post was originally published on this site

I’ve been searching all over for a way I could match disks inside windows to vmware’s harddisk

The problem is when I have disks with same scsi id on more than one scsicontroller (for ex. (1:0)  and (0:0))

I found some scripts that compare the scsicontroller.bus number with the windows scsiport -1 but its not always the case..sometimes its -2 and sometimes its equal with no change. Any ideas? thanks in advance