VMware Cloud Community
sunny_bhatnaga1
Contributor
Contributor

Get-VM VMNAME not working on PowerCli 6.5 with VCSA 6.5

Hi Guys,

I am getting this strange error where I have  a VM with snapshot but it's VM name is not showing up on PowerCli command:

Get-VM VMName | Get-Snapshot

Output doesn't have the VM name..... This is only happening on one of my vCenter. My other vCenter's are behaving all right.

0 Kudos
1 Reply
LucD
Leadership
Leadership

Also when you do it like this?

Get-VM -Name VMName |Get-Snapshot |

Select @{N='VM';E={$_.VM.Name}},Name


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

0 Kudos