January 2016
Intermediate to advanced
984 pages
18h 9m
English
In this appendix, we provide some examples on how to produce reports with the help of PowerCLI.
Virtual machine (VM) information is retrieved using the Get-VM cmdlet. The cmdlet in its simplest form returns all VMs in your infrastructure:
Get-VM
Name PowerState Num CPUs MemoryGB
---- ---------- -------- --------
VM001 PoweredOn 1 1.000
VM002 PoweredOff 1 1.000
VM003 PoweredOn 2 2.000
You can specify a VM name via the -Name parameter to be more specific in your request. If you prefer, you can omit the -Name parameter name and use wildcards. By default, only the default properties defined in the types.ps1xml file, located in the PowerShell installation directory, are displayed. To view all properties, ...
Read now
Unlock full access