PowerCLI – Get a VM’s Disks

Posted by & filed under Virtualization, VMWare.

PowerCLI snippets to get a VM’s disks

This command will retrieve the specified VM’s attached disk paths:

But we can also focus on the filename:

We can also see the other columns available:

We could also do something like get the Disk paths for all guests: