0201 | Don't fear the shell
Disclaimer | Attribution
This short "Introduction to PowerShell" is based on my own notes taken based on the PowerShell For Beginners video course by Jason Helmick and Jeffrey Snover.
I highly recommend this course as a great starting point for learning about PowerShell; it was instrumental in my own understanding of the subject. I would like to extend a big thank you to the creators for providing such valuable resources!
Getting current version
$PSVersionTable
Copy and paste in ps
- highlight text -> right click for copy
- right click for paste
Commandlets / cmdlets structure
<verb>-<noun>
Multiple commands
# ; is a statement separator
cls; get-alias
Common aliases and Linux commands
- history |
get-history - cd |
set-location c:\ - ls |
dir|get-childitem - clear |
cls|clear-host|clear - list aliases |
get-alias|gal - get aliases for the command |
get-alias -Definition get-process - mkdir |
md jason|mkdir jeffrey - man |
help|get-help - cat |
type|cat|get-content
Windows native commands
calc
notepad
mspaint
Windows networking commands
ping
ipconfig /all
Comments
# test comment
Wildcards
gal *sv