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.
-
Start Windows PowerShell by using Start | Run | Windows PowerShell. The PowerShell prompt will open by default at the root of your Documents And Settings.
-
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
-
To obtain detailed help about the Get-Help cmdlet, use the -detailed argument as follows:
get-help get-help -detailed
-
To retrieve technical information about the Get-Help cmdlet, use the -full argument. This is shown here:
get-help get-help -full
-
If you only want to obtain a listing of examples of command usage, use the -examples argument as follows:
get-help get-help -examples
-
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*
-
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*
-
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*
-
This concludes the one step further exercise. Exit the Windows PowerShell by typing exit and pressing Enter.
Категории