Differences
This shows you the differences between two versions of the page.
code_snippets:powershell_snippets [2014/06/17 17:55] – external edit 127.0.0.1 | code_snippets:powershell_snippets [2014/06/17 18:10] (current) – smark | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PowerShell Snippets ====== | ====== PowerShell Snippets ====== | ||
- | Woo Content! | + | ===== VMware ===== |
+ | |||
+ | === List all VM Disks === | ||
+ | |||
+ | Get-VM * | Get-HardDisk | Sort-Object Parent,Name | Format-Table Parent, | ||
+ | |||
+ | Lists all disks in VMware environment (after using Connect-VIServer) sorted by the VM and then the disk name. Table contains the VM name, the disk name, the disk capacity, the storage format (thin/ |