Using the PowerShell object cmdlets
PowerShell has some cmdlets that are designed to work with all kinds of objects. You can easily recognize them because they all have -Noun Object
. You can use the Get-Command
cmdlet's –Noun
parameter to find them:
PowerCLI C:\> Get-Command -Noun Object
The output of the preceding command is as follows:
CommandType Name ModuleName ----------- ---- ---------- Cmdlet Compare-Object Microsoft.PowerShell.Utility Cmdlet ForEach-Object Microsoft.PowerShell.Core Cmdlet Group-Object Microsoft.PowerShell.Utility Cmdlet Measure-Object Microsoft.PowerShell.Utility Cmdlet New-Object Microsoft.PowerShell.Utility Cmdlet Select-Object Microsoft.PowerShell.Utility Cmdlet Sort-Object Microsoft.PowerShell.Utility Cmdlet Tee-Object ...
Get Learning PowerCLI now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.