Hi LucD,
I attach a copy of my script which is working well to retrieve RDM disks from various vcenter servers, you helped me with a lot of this, many thanks for your earlier help and sorry to pester you again with more
Basically I sort the required results into an array called $FinalList and then perform some selections on the array to sort the associated hosts and disk devices into their respective vcenter servers
These variables are then used within a foreach loop where each esxi host info is retrieved using get-vmhost but unfortunately falls over
I attach the script to demonstrate or provide info, it is at line 84 where the array object of the esxihost is placed into the string variable $STRHost using out-string -inputobject
$STRHost = Out-String -InputObject $HostSet
Then I use 'get-vmhost $STRHost' and that is when I receive the error
$LiveHost = Get-VMHost $STRHost
$STRHost | get-member = system.string
I attach my script for your perusal
Many thanks in advance LucD