Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 246286

Get-VM and Get-Snapshit does not return Host/VMHost

$
0
0

Hi,

 

been banging my head a bit lately on this one.

 

When I run Get-VM | select VMHost, Name I get a return on the VMhost and the guest.

 

If I add a tad to the selection such as Get-Snapshot and a few more selections I do not get the VmHost but all the rest of the information comes along just fine.

 

Get-VM | Get-Snapshot | select VMHost, Name, Description, SizeMB

 

Can anybody be so kind as to point out what I am doing wong.

 

Finally this is part of something I plan to run a bit more thoroughly so the whole line is something like this:

 

Get-VM | Get-Snapshot | select VMHost, Name, Description, SizeMB, @{N="DaysOld"; E={((Get-Date) - $_.Created).Days}} | ? {$_.DaysOld -gt 7} | Export-Csv "C:\Filename.csv"

 

The commandlet works but just not with the host, which quitely franky would be useful to have

 

//Martin


Viewing all articles
Browse latest Browse all 246286

Trending Articles



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