PowerSell Cheat Sheet
There are " 444 " PowerShell Commands
Name
Alias
Description
Type
Get permission settings for a file or registry key.
Function
Set permissions.
Function
gal
Return alias names for cmdlets.
CmdLet
epal
Export currently defined aliases to a file.
CmdLet
ipal
Import an alias list from a file.
CmdLet
nal
Create a new alias.
CmdLet
sal
Create or change an alias.
CmdLet
Return App-V Client Packages.
Function
List the app packages installed in a user profile.
Function
Remove an app package from a user account.
Function
Create a new archive/zipped file. [PS 5+]
Function
Extract files from an archive (zipped) file [PS 5+]
Function
Get the signature object associated with a file.
Function
Place a signature in a .ps1 script or other file.
Function
Backup group policy objects. (GPOs)
Function
Function BEGIN block.
Function
Function BEGIN block.
Function
Enable encryption for a BitLocker volume.
Function
Enable automatic unlocking for a BitLocker volume.
Function
Resume Bitlocker encryption for the specified volume.
Function
Suspend Bitlocker encryption for the specified volume.
Function
Add a key protector for a BitLocker volume.
Function
Remove a key protector from a BitLocker volume.
Function
Get information about volumes BitLocker can protect.
Function
Exit a program loop.
Function
Handle a terminating error within a scriptblock.
Function
Export a certificate from a certificate store into a file.
Function
Submit/retrieve a certificate request to an enrollment server and install.
Function
Submit/retrieve a certificate request to an enrollment server and install.
Function
fc
Format output using a customized view.
CmdLet
dir
ls
gci
Get child items (contents of a folder or registry key).
CmdLet
Retrieve CIM instance by an association.
Function
gcls
Get a list of CIM classes in a specific namespace.
CmdLet
Subscribe to indications using a filter or query expression.
Function
ncim
Create a new instance of a class.
CmdLet
gcim
Get a managed resource (storage, network, software etc).
CmdLet
rcim
Remove a CIM instance from a computer.
CmdLet
scim
Modify a CIM instance on a CIM server.
CmdLet
icim
Invoke a method of a CIM class or CIM instance.
CmdLet
gcms
Get current CIM session objects.
CmdLet
ncms
Create a CIM session.
CmdLet
Advanced options for New-CimSession.
Function
rcms
Remove one or more CIM session objects.
CmdLet
Get the current Windows clipboard entry.
Function
Set the current Windows clipboard entry.
Function
gcm
Retrieve basic information about a command.
CmdLet
icm
Run command.
CmdLet
shcm
Create PowerShell commands in a graphical command window.
CmdLet
Measure running time.
Function
Trace an expression or command.
Function
Add a computer to the domain.
Function
Create a system restore point (XP)
Function
Remove the local computer from a workgroup or domain.
Function
Rename a computer.
Function
Restart the operating system on a computer.
Function
Restore the computer to a previous state.
Function
Stop (shut down) a computer.
Function
Get system and operating system properties.
Function
Reset the machine account password for the computer.
Function
Test and repair the secure channel to the domain.
Function
ac
Add to the content of the item.
CmdLet
cat
type
gc
Get content from item (specific location).
CmdLet
sc
Set content in the item (specific location).
CmdLet
clc
Remove content from a file/item.
CmdLet
Skip just this iteration of a loop.
Function
Enable System Restore on a drive.
Function
Disable System Restore on a drive.
Function
Get the restore points on the local computer.
Function
Ping one or more computers.
Function
Convert object properties (in CSV format) into CSV objects.
Function
Convert a JSON-formatted string to a custom object.
Function
Convert a JSON-formatted string to a custom object.
Function
Convert an object to a JSON-formatted string.
Function
Convert the input into an HTML table.
Function
Convert the input into XML.
Function
Export Performance Counter data to log files.
Function
Get performance counter data.
Function
Import performance counter log files.
Function
Get a security credential (username/password).
Function
Get region information (language and keyboard layout).
Function
Set the user culture for the current user account.
Function
epcsv
Export to Comma Separated Values (spreadsheet).
CmdLet
Import a clixml file and rebuild the PS object.
Function
ipcsv
Take values from a CSV list and send objects down the pipeline.
CmdLet
Export console configuration to a file.
Function
Get current date and time.
Function
Set system time on the host system.
Function
Remove all partition information and un-initialize a disk, erasing all data.
Function
Get one or more disks visible to the OS.
Function
Set attributes and update a physical disk.
Function
Initialize a RAW disk for first use, this enables formatting.
Function
Mount a previously created disk image (virtual HD or ISO)
Function
Retrieve the content of the local DNS client cache.
Function
Clear the content of the DNS client cache.
Function
Get a DNS server IP address from the interface TCP/IP properties.
Function
Set a DNS server IP address on the interface TCP/IP properties.
Function
Perform a DNS name query resolution for a specified name.
Function
Loop while a condition is True.
Function
Get the current config. of a node.
Function
Get Local Config Manager settings.
Function
Get Desired State Config. resources from a computer.
Function
Create checksum files for DSC docs/resources.
Function
Apply Desired State config to nodes.
Function
Function END block.
Function
Get events in the PowerShell event queue.
Function
Create a new event.
Function
Delete events from the event queue.
Function
Cancel an event subscription.
Function
Wait until a particular event is raised.
Function
Delete all entries from an event log.
Function
Get event log data (2003).
Function
Limit the size of the event log.
Function
Create a new event log and a new event source.
Function
Delete an event log.
Function
Display an event log.
Function
Write an event to an event log.
Function
Get event subscribers.
Function
Subscribe to PowerShell events.
Function
Get ExecutionPolicy
Function
Change the execution policy (user preference).
Function
iex
Run a PowerShell expression.
CmdLet
exit
Exit a script or exit PowerShell.
CmdLet
Unblock files downloaded from the Internet.
Function
Compute the hash value for a file.
Function
Loop through each item in a collection.
Function
Loop through items that match a condition.
Function
Save formatting data from the current session.
Function
Get the formatting data in the current session.
Function
Restore one or all GPOs from a GPO backup.
Function
Import Group Policy settings into a specified GPO from a GPO backup.
Function
Create a GUID.
Function
help
Open the help file.
CmdLet
Download and install the newest help files on your computer.
Function
Add entries to the session history.
Function
clhy
Delete entries from the session history.
CmdLet
history
h
ghy
Get a listing of the session history.
CmdLet
r
ihy
Invoke a previously executed Cmdlet.
CmdLet
fhx
Display a file or other input as hexadecimal.
CmdLet
Get host information (PowerShell Version and Region).
Function
clear
cls
Clear the screen.
CmdLet
oh
Send output to the host.
CmdLet
Read a line of user input from the host console.
Function
Write customized output to the host/screen.
Function
Get Installed hotfixes.
Function
Conditionally perform a command.
Function
Specify how PowerShell should handle information stream data.
Function
Get one or more host bus adapter (HBA) initiator ports.
Function
cli
Remove content from a variable or an alias.
CmdLet
gi
Get a file object or get a registry (or other namespace) object.
CmdLet
ii
Invoke an executable or open a file (START).
CmdLet
copy
cp
ci
Copy an item from a namespace location.
CmdLet
md
mkdir
ni
Create a new item in a namespace.
CmdLet
si
Change the value of an item.
CmdLet
clp
Remove the property value from a property.
CmdLet
ccp
Copy a property along with it's value.
CmdLet
gp
Retrieve the properties of an object.
CmdLet
mp
Move a property from one location to another.
CmdLet
Set a new property.
Function
rp
Set a new property.
CmdLet
sp
Set a property at the specified location to a specified value.
CmdLet
gpv
Set a property at the specified location to a specified value.
CmdLet
gjb
Get PowerShell background jobs that are running.
CmdLet
rcjb
Get PowerShell background job results.
CmdLet
rjb
Delete a PowerShell background job.
CmdLet
rujb
Restart a suspended job.
CmdLet
sajb
Start a PowerShell background job.
CmdLet
spgb
Stop a PowerShell background job.
CmdLet
wjb
Wait for a background job.
CmdLet
Get/Set Scheduled job triggers.
Function
Generate a new root key for the MS.Group KdsSvc within AD.
CmdLet
fl
Format output as a list of properties, each on a new line.
CmdLet
Add a new local security group.
Function
Add a new local security group.
CmdLet
Get the local security groups.
Function
Remove a local security group.
Function
Change a local security group.
Function
Change a local security group.
Function
Add members to a local group.
Function
Get members from a local group.
Function
Set the current working location from the stack.
Function
Set the current working location from the stack.
Function
pwd
gl
Set the current working location from the stack.
CmdLet
popd
Set the current working location from the stack.
CmdLet
pushd
Push a location to the stack.
CmdLet
cd
chdir
sl
Set the current working location.
CmdLet
Set the basic network adapter properties.
Function
Set the basic network adapter properties.
Function
Disable a binding to a network adapter.
Function
Get the VMQ properties of a network adapter.
Function
Set the VMQ properties of a network adapter.
Function
Display diagnostic information for a connection.
Function
Get a connection profile.
Function
Set a connection profile.
Function
Modify existing firewall rules.
Function
Modify existing firewall rules.
Function
Retrieve firewall rules from the target computer.
Function
Create a new firewall rule and add to a target computer.
Function
Get IP address configuration.
Function
Create and configure an IP address.
Function
Remove an IP address and its configuration.
Function
Modify the configuration of an IP address.
Function
Get IP network configuration.
Function
Get an IP interface.
Function
Create a new NIC team.
Function
Create a new NIC team.
Function
Create a NAT object.
Function
Create a route in the IP routing table.
Function
Get TCP connections.
Function
Modify a TCP setting
Function
Download and install one or more modules from an online gallery.
Function
foreach
Loop through each item in the pipeline (%).
CmdLet
diff
compare
Compare the properties of objects.
CmdLet
group
Group objects that contain the same value.
CmdLet
Measure the properties of an object.
Function
Create a new .Net object.
Function
select
Select properties of objects.
CmdLet
sort
Sort objects by property value.
CmdLet
Filter the objects passed along the command pipeline.
Function
Subscribe to .NET events.
Function
Add an ODBC DSN.
Function
Set the destination of default output.
Function
Set the destination of default output.
Function
ogv
Set the destination of default output.
CmdLet
oh
Send output to the host.
CmdLet
Send output to null.
Function
lp
Send the output to a printer.
CmdLet
Send objects to the host as strings.
Function
Return a list of all software packages installed using Package Management.
Function
Find software packages in available package sources.
Function
Uninstall one or more software packages.
Function
Uninstall one or more software packages.
Function
Install one or more Package Management package providers.
Function
Script Parameters.
Function
Return a list of partition objects.
Function
Create a new partition on an existing Disk object.
Function
Resize a partition and the underlying file system.
Function
Set attributes of a partition: active, read-only, offline.
Function
cvpa
Convert a ps path to a provider path.
CmdLet
Combine a path and one or more child-paths.
Function
rvpa
Resolves the wildcards in a path.
CmdLet
Return part of a path.
Function
Return true if the path exists, otherwise return false.
Function
Pause and display the message "Press Enter to continue..."
Function
Get pfx certificate information.
Function
Get pfx certificate information.
Function
Get pfx certificate information.
Function
Set attributes on a specific physical disk.
Function
Set attributes on a specific physical disk.
Function
Set attributes on a specific physical disk.
Function
Return information about PnP devices.
Function
Launch a PowerShell session/run a script.
Function
Add a printer to the specified computer.
Function
Retrieve a list of printers installed on a computer.
Function
Remove a printer from the specified computer.
Function
Update the configuration of an existing printer.
Function
Install a printer driver on the computer.
Function
Install a printer port on the computer.
Function
Retrieve a list of print jobs from the specified printer.
Function
ps
gps
Function PROCESS block.
CmdLet
ps
gps
Get a list of processes on a machine.
CmdLet
Attach a debugger to a running process.
Function
start
saps
Start one or more processes.
CmdLet
kill
spps
Stop a running process.
CmdLet
Wait for a process to stop.
Function
ebp
Enable a breakpoint in the current console.
CmdLet
dbp
Disable a breakpoint in the current console.
CmdLet
gbp
Get the currently set breakpoints.
CmdLet
sbp
Set a breakpoint on a line, command, or variable.
CmdLet
rbp
Delete breakpoints from the current console.
CmdLet
gcs
Display the current call stack.
CmdLet
gdr
Get drive information (DriveInfo).
CmdLet
mount
ndr
Create a mapped network drive.
CmdLet
rdr
Remove a provider/drive from its location.
CmdLet
Get information for the specified provider.
Function
Turn script debugging on or off.
Function
Disable remote session configuration on the local computer.
Function
Configure the computer to receive remote commands.
Function
Get PowerShell repositories.
Function
Register a PowerShell repository.
Function
Set values for a registered repository.
Function
cnsn
Reconnect to a disconnected session.
CmdLet
dnsn
Disconnect from a session.
CmdLet
etsn
Start an interactive session with a remote computer.
CmdLet
exsn
End an interactive session with a remote computer.
CmdLet
epsn
Import commands and save them in a PowerShell module.
CmdLet
gsn
Get the PSSessions in the current session.
CmdLet
ipsn
Import commands from another session.
CmdLet
nsn
Close PowerShell sessions.
CmdLet
rsn
Close PowerShell sessions.
CmdLet
Enable session configurations on the local computer.
CmdLet
Enable session configurations on the local computer.
Function
Get the registered PS session configuration.
Function
Create and register a new PS session configuration.
Function
Change properties of a registered session configuration.
Function
Create a file that defines a session configuration.
Function
Create a file that defines a session configuration.
Function
Advanced options for a PSSession.
Function
Import certificates and keys from a Personal Information Exchange(PFX) file.
Function
asnp
Add snap-ins to the console.
CmdLet
gsnp
List PowerShell snap-ins on this computer.
CmdLet
rsnp
Remove PowerShell snap-ins from the console.
CmdLet
Get a random number.
Function
rm
del
erase
rd
ri
rmdir
Remove an item.
CmdLet
ren
rni
Change the name of an existing item.
CmdLet
Rename a property of an item.
Function
Exit the current scope, (function, script, or script block).
Function
&
Run a command (call operator).
CmdLet
Send an HTTP or HTTPS request to a RESTful web service.
Function
Confirm that Secure Boot is enabled on the local computer.
Function
Send an email message.
Function
gsv
Get a list of services.
CmdLet
Create a new service.
Function
Stop and then restart a service.
Function
Resume a suspended service.
Function
Change the start mode/properties of a service.
Function
sasv
Start a stopped service.
CmdLet
spsv
Stop a running service.
CmdLet
Suspend a running service.
Function
cfs
Extract and parse structured properties from a string.
CmdLet
Convert a string containing key and value pairs into a hash table.
Function
Convert a secure string into an encrypted standard string.
Function
Convert an encrypted standard string into a secure string.
Function
Retrieve the connections established from the SMB client to the SMB servers.
Function
Information about files that are open on behalf of SMB server clients.
Function
Get an SMB mapping.
Function
Create an SMB mapping.
Function
Remove an SMB mapping.
Function
Retrieve information about current SMB sessions.
Function
Get the SMB Server configuration.
Function
Get the SMB Server configuration.
Function
Set the SMB Server configuration.
Function
Retrieve the SMB shares on the computer.
Function
Modify the properties of an SMB share.
Function
Create an SMB share.
Function
Add an allow ACE for a trustee to the security descriptor of the SMB share.
Function
Get the names and IDs of apps installed on the Start Menu.
Function
Get the names and IDs of apps installed on the Start Menu.
Function
Suspend shell, script, or runspace activity.
Function
Suspend shell, script, or runspace activity.
Function
Suspend shell, script, or runspace activity.
Function
sleep
Information about long-running Storage module jobs, such as a repair task.
CmdLet
Create a new storage pool using a group of physical disks.
Function
Check multiple conditions.
Function
Search through strings or files for patterns.
Function
ft
Format output as a table.
CmdLet
tee
Send input objects to two places.
CmdLet
Create a timespan object.
Function
gtz
Get the current time zone or a list of available time zones.
CmdLet
stz
Set the system time zone to a specified time zone.
CmdLet
Get the list of cipher suites for TLS for a computer.
Function
Trusted Platform Module (TPM).
Function
Trace an expression or command.
Function
Get components that are instrumented for tracing.
Function
Trace a PowerShell component.
Function
Start a new transaction.
Function
Commit the transaction.
Function
Get information about the active transaction.
Function
Roll back a transaction.
Function
Roll back a transaction.
Function
Start a transcript of a command shell session.
Function
Stop the transcription process.
Function
Handle a terminating error within a scriptblock.
Function
Handle a terminating error within a scriptblock.
Function
Add a .NET Framework type to a PowerShell session.
Function
Get the ui culture information.
Function
gu
Get the unique items in a collection.
CmdLet
Update and append format data files.
Function
Update the current extended type configuration.
Function
clv
Remove the value from a variable.
CmdLet
gv
Get a PowerShell variable.
CmdLet
nv
Create a new variable.
CmdLet
rv
Remove a variable and its value.
CmdLet
Set a variable and a value.
Function
Return a list of VirtualDisks across storage pools/providers.
Function
Create a new virtual disk in the specified storage pool.
Function
Get the specified Volume object, or all Volume objects.
Function
Format one or more volumes.
Function
Create a volume with the specified file system.
Function
Optimize a volume.
Function
Perform repairs on a volume.
Function
Retrieve the specified VPN connection profile information.
Function
Add a VPN connection to the Connection Manager phone book.
Function
Add a route to a VPN connection.
Function
Add a route to a VPN connection.
Function
Create a checkpoint for an IIS web app.
Function
Get the monitoring status of web apps.
Function
Create a Web service proxy object.
Function
Filter objects from a collection.
Function
fw
Format output as a table listing one property only.
CmdLet
Filter objects from a collection.
Function
Loop while a condition is True.
Function
Install a Windows capability package on the specified OS image.
Function
Get capabilities for an image or a running OS.
Function
Retrieve roles, role services, and features.
Function
Export Windows Driver
Function
Retrieve roles, role services, and features.
Function
Retrieve roles, role services, and features.
Function
Install roles, role services, or features (Server 2012 R2).
Function
Mount a Windows image (WIM or VHD file) to a directory on the local computer.
Function
Mount a Windows image (WIM or VHD file) to a directory on the local computer.
Function
Repair a Windows image in a WIM or VHD file.
Function
Disable a feature in a Windows image.
Function
Enable a feature in a Windows image.
Function
Get information about optional features in a Windows image.
Function
Add a single .cab or .msu file to a Windows image.
Function
Merge Windows Update .etl files into a single log file.
Function
Set the system locale for the current computer.
Function
Set the language list/properties for the current user.
Function
Display management information (XML or value).
Function
Write an object to the error pipeline (2).
Function
write
echo
Write an object to the pipeline (1).
CmdLet
Display a progress bar.
Function
Write a string to the host's verbose display (4).
Function
Create or update an instance of an existing WMI class.
Function
Create or update an instance of an existing WMI class.
Function
iwmi
Call WMI methods.
CmdLet
gwmi
Get WMI class information.
CmdLet
Subscribe to a WMI event.
Function
rwmi
Delete an instance of a WMI class.
CmdLet
Connect to the WinRM service on a remote computer.
Function
Disconnect from the WinRM service on a remote computer.
Function
Test if a computer is setup to receive remote commands.
Function
Invoke an action on a specified object.
Function
Disable Credential Security Service Provider (SSP) authentication.
Function
Enable Credential SSP authentication.
Function
Create a new instance of a management resource.
Function
Create a new instance of a management resource.
Function
Display management information (XML or value).
Function
Modify the management information related to a resource.
Function
Configure the local computer for remote management.
Function
Configure the local computer for remote management.
Function
Options for WSMan commands.
Function
Compress or Extract zip files.
Function
Comment / Remark.
Function
Run a command script in the current shell.
Function
Run a command, script or function.
Function
Alias for ForEach-Object.
Function
Stop parsing input.
Function
Alias for Where-Object.
Function
Define a variable also: ${n!a#me} = "value".
Function
The current pipeline object.
Function
Force an expression to be evaluated as an array.
Function