Skip to content

Get Commands

Get Command

Shows all available commandlets/functions that we can run

Run

Get-Command

Rules

Everything has to be in form of <verb>-<noun> or <action>/<object>

Get-Command filter

Find commands that include a noun that start with S* (RegEx)

Get-Command -noun S*

Get Service

List status / name / DisplayName for all services

Get-Service

Get-Help

Manual

Syntax:

Get-Help <get command>

Example:

Get-Help Get-Service

Get Examples

Get-Help <get command> -Examples

Get Online

Get-Help <get command> -Online

Get Alias

Get-Alias <alias command>

Get Process

Get-Process -Name <process_name>

Get Member

Get member alias/events/methods/properties

<get command> <subcommand> | Get-Member

Example:

Get-Process -Name microsoftEdge | Get-Member

Select Object

Get all properties about an object

<get command> <subcommand> | Select-Object *

Example:

Get-Process -Name microsoftEdge | select-object *

Sources

(Microsoft - Text)[https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/get-command?view=powershell-7.5] (YouTube - Video)[https://youtu.be/IHrGresKu2w] - 15:16 minutes