Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

VIObject error message

$
0
0

Hi

Just wondering why I am getting the below error message....

 

 

####################
write-host "Standalone hosts:" -foregroundcolor green
#TM hosts not in cluster
$hostlist = Get-VMHost |where{$_.ExtensionData.Parent.Type -ne "ClusterComputeResource"} | Select Name

foreach ($host1 in $hostlist) {
#get folder
$path = @()
$parent = Get-View $host1.ExtensionData.ResourcePool
While ($parent.parent){ 
    $parent = Get-View $parent.parent
    $path += $parent.Name
}
$path = "$path".split(" ")[1]
write-host "$path"


$out = get-vmhost $host1 | get-vmhosthba | get-scsilun | get-scsilunpath | Select -ExpandProperty SanID -unique -ErrorAction "SilentlyContinue"


write-host "$out"
write-host " "
}
####################

 

 

Capture.PNG


Viewing all articles
Browse latest Browse all 179681

Trending Articles