What does the following produce ?
foreach($dsinGet-Datastore){ Get-View ($ds.ExtensionData.Host|%{$_.Key}) |
select@{N="Datastore";E={$ds.Name}},
@{N="Host";E={$_.Name}} }
You should see a line for each ESXi that sees the datastore.
What does the following produce ?
foreach($dsinGet-Datastore){ Get-View ($ds.ExtensionData.Host|%{$_.Key}) |
select@{N="Datastore";E={$ds.Name}},
@{N="Host";E={$_.Name}} }
You should see a line for each ESXi that sees the datastore.