Automation

 View Only
  • 1.  Export List of VM connected

    Posted Apr 22, 2021 02:16 AM

    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.

     



  • 2.  RE: Export List of VM connected

    Posted Apr 22, 2021 05:45 AM

    Try with

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