I have seen that method before, but found out that it doesn't work when the controllers and disks have been manipulated after the creation of the VM.
The IDs assigned to the controllers do not seem to follow a logic (that I know of).
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference