PowerShell has a number of features that make it great for creating reports. It includes native features to export output in CSV and Excel formats to make it easier to work with the retrieved data. You can also search and filter through your cmdlets to easily locate and then scope down the results that you want.
You might need to create basic reports to report properties in the VMs, such as disk free space or virtual hardware defined. Even better, you can be the hero when your supervisor is looking for details about virtual machines related to a particular department or an application if you know how to tap into the potential of PowerCLI and PowerShell's reporting.
As you have seen in the earlier recipes, PowerCLI has cmdlets that look a lot like SQL with Select
, Where
, and Sort
cmdlets. These let you take a result set from a Get-
cmdlet and quickly return what you're specifically looking for. Beyond these cmdlets, you...