MicrosoftВ® Windows PowerShell(TM) Step By Step (Step By Step (Microsoft))

In this exercise, we use various help options to obtain assistance with various cmdlets.

  1. Start Windows PowerShell by using Start | Run | Windows PowerShell. The PowerShell prompt will open by default at the root of your Documents And Settings.

  2. Use the Get-Help cmdlet to obtain help about the Get-Help cmdlet. Use the command Get-Help Get-Help as follows:

    get-help get-help

  3. To obtain detailed help about the Get-Help cmdlet, use the -detailed argument as follows:

    get-help get-help -detailed

  4. To retrieve technical information about the Get-Help cmdlet, use the -full argument. This is shown here:

    get-help get-help -full

  5. If you only want to obtain a listing of examples of command usage, use the -examples argument as follows:

    get-help get-help -examples

  6. Obtain a listing of all the informational help topics by using the Get-Help cmdlet and the about noun with the asterisk (*) wild card operator. The code to do this is shown here:

    get-help about*

  7. Obtain a listing of all the help topics related to get cmdlets. To do this, use the Get-Help cmdlet, and specify the word “get” followed by the wild card operator as follows:

    get-help get*

  8. Obtain a listing of all the help topics related to set cmdlets. To do this, use the Get-Help cmdlet followed by the “set” verb followed by the asterisk wild card. This is shown here:

    get-help set*

  9. This concludes the one step further exercise. Exit the Windows PowerShell by typing exit and pressing Enter.

Категории