Hi
How could I include the host name in my csv output file?
The following code adds the datastore name but not the host name:
import-csv hosts.csv | %{get-vmhost -name $_.name} | Get-Datastore | Select name |
export-csv ESX-Datastore.csv -notypeinformation -useculture