Into to PowerShell – 3 Getting Help and Finding Commands

  Uncategorized

Cmdlets

Verb-Noun (Action)-(Thing)

  • Get, Add, Export, Import, Start
    • `get-verb`
    • Verbs are subdivided into Groups

Examining the Help System

  • -examples
  • -detailed: Shows examples, but also includes additional details about how to use the command
  • -full: Detailed, but includes additional parameters
  • -online: Opens a browser to the online help
Get-Help Get-Service -Examples

Combining Commands using the Pipe ‘|’ Operator

  • takes output of first command and makes it the input (source) for the next command

Find Help on a specific Command

  1. get-command
  2. Scroll to the command you want to see and click (place the cursor at the front of that command
  3. Press <F1>
    1. This becomes Get-Command '<command>' -ShowWindow

Getting Help using Wildcards

  • ‘*’ = 1 or more characters
  • `get-help *service*
    • `get-help start-service -examples`
  • `get-help *log*`
    • `get-help clear-eventlog -examples`

Q1 How to get dependent services of a running service

  1. get-service

get-process

LEAVE A COMMENT