Through this script you will get the SCSI ID details of VM .
SCSI IDÂ powerCLI script :
Open the PowerCLI icon (Run as Administrator) and you can execute commands manually, run scripts manually or automate your scripts with Task Scheduler (see below).
Get-VM VM_Name | Get-HardDisk | Select filename,@{N='VM';E={$_.Parent.Name}}, Name, @{N='SCSIid';E={ $hd = $_ $ctrl = $hd.Parent.Extensiondata.Config.Hardware.Device | where{$_.Key -eq $hd.ExtensionData.ControllerKey} "$($ctrl.BusNumber):$($_.ExtensionData.UnitNumber)" }} | export-csv vm.csv | out-gridview
Thanks hope you like it.
Rajiv Pandey.