Run your first command

    Run your first command

    Open PowerShell and type Get-Host

    You will get the installed version details along with some other details. Type $PSVersionTable to get all the details of PS versions.

     get host

    So, you might have already observed that PowerShell uses a verb-noun pair of the names if cmdlets and for their derived .NET classes. The verb part of the name identifies the action that the command performs. The noun part of the name identifies the entity on which the action is performed. For example, the Get-Command cmdlet retrieves all the commands that are registered in PowerShell.

    Locate PowerShell commands

    Type Get-Command in the PowerShell console to get list of all the cmdlets available on the server or system. There will be a huge list. You can use wild characters to get a precise list. like the following.

    PS C:\Users\WinAdmin> Get-Command *help*
    CommandType     Name                                               Version    Source
    -----------     ----                                               -------    ------
    Function        help
    Cmdlet          Get-Help                                     Microsoft.PowerShell.Core
    Cmdlet          Save-Help                                    Microsoft.PowerShell.Core
    Cmdlet          Update-Help                                  Microsoft.PowerShell.Core
    Application     deploymentcsphelper.exe                      C:\windows\system32\deploymentcsphelpe...
    Application     fodhelper.exe                                      10.0.22... C:\windows\system32\fodhelper.exe
    Application     help.exe                                           10.0.22... C:\windows\system32\help.exe
    Application     HelpPane.exe                                       10.0.22... C:\windows\HelpPane.exe
    Application     RdpSaUacHelper.exe                                 10.0.22... C:\windows\system32\RdpSaUacHelper.exe
    Application     runexehelper.exe                                   10.0.22... C:\windows\system32\runexehelper.exe