fborges555
Enthusiast
Enthusiast

Export List of VM connected

HI guru.

Hi guys I have the following from help from here

$Results= (get-hvmachinesummary -PoolName "" | where-object{$_.base.basicstate -eq "Maintenance"}) 

$Results.base.name | export-csv c:\temp\files.csv-->> this last line does not bring the name but just a length and a value of integer, not the name

Can I get help.

 

0 Kudos
1 Reply
LucD
Leadership
Leadership

Try with

$Results.base | Select Name | Export-Csv -Path c:\temp\files.csv


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos