My PowerShell Cheatsheet
Commands I encountered when learning a bit about PowerShell.
My PowerShell Cheatsheet
Getting help
1
help Get-Service
Get-Help is a bit unhandy as it scrolls down the help page.
General
Information about output object
1
<some_command_with_object_output> | Get-Member
Getting commands that accept a certain input type
1
Get-Command -ParameterType ServiceController
Brackets for passing output as paramters
1
Stop-Service -DisplayName (Get-Content -Path $env:TEMP\services.txt)
History
Session history:
1
Get-History
Search full history:
1
Get-Content (Get-PSReadlineOption).HistorySavePath | ? { $_ -like '*mlflow*' }
This post is licensed under CC BY 4.0 by the author.