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
- get-command
- Scroll to the command you want to see and click (place the cursor at the front of that command
- Press <F1>
- This becomes
Get-Command '<command>' -ShowWindow
- This becomes
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
- get-service
get-process