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

Populate CSV file with host name and datastore name

$
0
0

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


Viewing all articles
Browse latest Browse all 175326

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>