PowerShell Getting Started
Published: 2021-07-06
Intro
PowerShell can be used to codify Microsoft Windows environments. This post covers the basics of getting started with PowerShell.
Software
The following software was used in this post.
- Windows - 10
- PowerShell - 5.1.19041.1023
Cmdlets
Get a list of cmdlets
text
Get-CommandGetting Help
Get help for a cmdlet
text
help <cmdlet>PowerShell ships with a minimal help system. To update the help system use the following cmdlet
text
Udpate-HelpAliases
Many common unix/linux commands are aliased to windows commands. The get a list of aliases use the Get-Alias cmdlet.
text
Get-AliasFinding the Version
To get the PowerShell Engine version, get the PSVersion key from the $PSVersionTable hash table.
text
$PSVersionTable.PSVersion
# output
Major Minor Build Revision
----- ----- ----- --------
5 1 19041 1023