VMware Cloud Community
SteFFun
Contributor
Contributor
Jump to solution

How do I know which folder the files are stored virtual machine with PowerCli?

Good afternoon.

How to use PowerCLi can find the folder where the virtual machine files are stored?

Tags (4)
Reply
0 Kudos
1 Solution

Accepted Solutions
kunaludapi
Expert
Expert
Jump to solution

This will find info regarding vmdk location.

get-vm | get-harddisk

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

View solution in original post

Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership
Jump to solution

Try something like this

Get-VM | Select Name,@{N="Path";E={$_.ExtensionData.Config.Files.VmPathName}}


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

kunaludapi
Expert
Expert
Jump to solution

This will find info regarding vmdk location.

get-vm | get-harddisk

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos
SteFFun
Contributor
Contributor
Jump to solution

Thank you very much! -=)

Reply
0 Kudos