Windows-PowerShell-Commands-List
Windows-PowerShell-Commands-List
Sheet (PDF)
technastic.com/windows-powershell-commands-list/
Alias: An alternate or shorter name for a cmdlet, script, function, or executable file.
Cmdlet: Commands built into shell written in .NET Framework.
Ctrl + C: Cancel the current command.
F7: Shortcut key to view command history in a window.
Functions: Commands written in PowerShell language.
Home/End: Shortcut key to move to the start/end of a line.
Insert: Shortcut key to toggle between insert/overwrite mode.
Left/right arrow: Navigate the cursor.
Ctrl + left/right arrow: Navigate a word at a time.
Up/down arrow: Move up and down through history.
Pipelines: A series of commands connected by pipeline operators ( | ).
Parameter: Arguments to a cmdlet/function/script.
Scripts: Text files with ps1 extension.
Tab/Shift-Tab: Shortcut key to complete commands as you type them.
Variable: A unit of memory in which the data is stored. Variables usually start with a
$ sign and include spaces and special characters.
1/8
Clear-Host cls, clear Removes all text (commands and output)
from the current display.
Copy-Item copy, cp, Copies files and folders from a source file
cpi path to the destination file path.
2/8
Get-Alias gal Gets the alias names for the cmdlets,
functions, and scripts for the current session
in PowerShell. If you want to find out or
check the alias for a specific cmdlet, you can
use Get-Alias -Definition cmdlet-
name or gal -d cmdlet-name.
Get-ChildItem gci, dir, ls Gets the files and folders from one or more
specified locations, such as a file system
directory, registry hive, or certificate store.
Get-Content gc, type Gets the contents from a file without opening
it and returns each text file line as a string
object.
Get-Module gmo Displays the list of all the modules that are
loaded behind the scene. You can use the
cmdlet Get-Module -ListAvailable to view
the list of all available modules. A module is
a collection of cmdlets, variables, functions,
and workflows.
3/8
Get-PSBreakpoint gbp Retrieves all current breakpoints that are set
in the current session. This cmdlet can help
you debug PowerShell.
4/8
Import-Module ipmo Imports modules to the current session.
Move-Item mi, mv, Moves a file, folder, or registry along with its
move properties, contents, and child items from
one location to another location.
5/8
New-PSDrive ndr, Creates a new temporary or persistent drive
mount with various Windows PowerShell provider
types. To create a new PSDrive you’ll need
to provide a drive name, the provider, and
the location.
6/8
Remove-Module rmo Deletes module objects (cmdlets and
functions) from the PowerShell session.
7/8
Set-ItemProperty sp Sets the value of the property of the
specified object.
8/8