VMware Cloud Community
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Get VM details based on folder name

Hi,

Need help in getting the VM details based on particular folder.

get-vm | select Name, IPAddress

Thanks

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You mean like this?

Get-Folder -Name MyFolder |

Get-VM |

select Name, @{N='IPAddress';E={$_.Guest.IPAddress -join '|'}}


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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You mean like this?

Get-Folder -Name MyFolder |

Get-VM |

select Name, @{N='IPAddress';E={$_.Guest.IPAddress -join '|'}}


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

Reply
0 Kudos
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Thank you very much Smiley Happy

Reply
0 Kudos