ganapa2000
Enthusiast
Enthusiast

Get VM details based on folder name

Jump to solution

Hi,

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

get-vm | select Name, IPAddress

Thanks

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

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

0 Kudos
2 Replies
LucD
Leadership
Leadership

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

0 Kudos
ganapa2000
Enthusiast
Enthusiast

Thank you very much Smiley Happy

0 Kudos