Working with the various parameters of Get-Command (Intermediate)
We will learn about the parameters of Get-Command
in different versions of PowerShell.
Getting ready
In PowerShell v2.0, Get-Command
only retrieves the CMDLETs available in the present session whereas, in v3.0, it retrieves all the CMDLETs that are installed on the local computer, including modules, functions, workflows, scripts, and so on. It also includes the application in the output available at the $env:Path
location.
How to do it...
Execute the following commands:
- The following command statements retrieve a list of the workflow CMDLETs and general functions available in the current session:
PS C :\> Get-Command -Module PSWorkflow PS C :\> Get-Command -CommandType Function
- The following ...
Get Instant Windows PowerShell Guide 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.