Windows PowerShell is an extremely powerful way to manage many aspects of modern Windows systems. For years users were limited to the limitations of the Windows Command Prompt but in 2006, PowerShell emerged as a powerful alternative.
All PowerShell commands allow you to quickly access many aspects of the Windows operating system, including typically hidden Windows properties.
In this Article
- PowerShell vs. Command Prompt
- The most Common All PowerShell Commands
- The basic Windows PowerShell commands
- How to list all PowerShell commands?
- How many different PowerShell commands are there?
- What does $ in PowerShell stand for?
- Is PowerShell superior to CMD?
- All PowerShell Commands – Final Words
Understanding Power Shell
1. All PowerShell Commands
All PowerShell commands are referred to as cmdlets (pronounced command-lets). PowerShell, in addition to cmdlets, allows you to run any command on your system.
Cmdlets are PowerShell commands rather than standalone executables. PowerShell modules are collections of cmdlets that may be loaded on demand. Cmdlets can be written in any compiled.NET language or in PowerShell’s own scripting language.
PowerShell names cmdlets using a Verb-Noun name pair. For example, the Get-Command cmdlet in PowerShell is used to retrieve all of the cmdlets registered in the command shell. The verb denotes the action that the cmdlet takes, and the noun denotes the resource on which the cmdlet acts.
For beginner users, PowerShell can look exactly like the Command Prompt. However, there are major differences and the main one is that Windows PowerShell has like the name implies, more power.
The main difference is that PowerShell uses cmdlets rather than commands. Another difference is that PowerShell is built around the concept of objects, while Command Prompt works on basic commands.
In short, All PowerShell Commands Prompt on steroids.
All PowerShell Commands
The most common Windows’ All PowerShell commands, or cmdlets as they are called, are these:
- Get-Location – Get the current directory
- Set-Location – Set the current directory
- Move-item – Moves a file to a new location
- Copy-item – Copies a file to a new location
- Rename – Renames an existing file
- New-item – Creates a new file
4. The basic Windows’ All PowerShell commands
Here are the most commonly used Windows PowerShell commands and what they do:
|Add-content||This PowerShell Command adds the content to your specified file.|
|Add-Computer||This PowerShell Command adds the local computer to a domain or workgroup.|
|Add-History||This PowerShell Command is used to add the command in the history.|
|Add-jobTrigger||This PowerShell Command adds the job triggers to the scheduled jobs.|
|Add-member||The PowerShell Command adds the custom methods or properties to an instance of a PowerShell object.|
|Add-type||This PowerShell Command adds a Microsoft .NET framework class to a Windows PowerShell session.|
|Clear-Content||This PowerShell Command deletes the content of a file but does not delete that file.|
|Clear-History||This PowerShell Command deletes the entries from the command history.|
|Clear-Item||This PowerShell Command clears the value of an item or variable but does not clear that item or a variable.|
|Clear-ItemProperty||This PowerShell Command clears the value of a property but does not delete that property.|
|Clear-Variable||This PowerShell Command deletes the value of a variable.|
|Clear-Host||This PowerShell command clears the display of the host program.|
|Copy-ItemProperty||This PowerShell Command copies a value and property from a specified location to another location.|
|Copy-Item||This PowerShell Command copies an item from one location to another.|
|Complete-Transaction||This PowerShell Command commits the active transaction.|
|Compare-object||This PowerShell Command compares two sets of objects.|
|Disable-PSBreakpoint||This PowerShell Command disables the breakpoint in the current console.|
|Enable-PSBreakpoint||This PowerShell Command enables the breakpoint in the current console.|
|Find-package||This PowerShell Command finds the software packages in the available packages sources.|
|Find-script||This PowerShell Command is used to find a script|
|ForEach-Object||This PowerShell Command performs an operation on each item in a collection of input objects.|
|Get-Alias||This PowerShell Command gets the aliases for the current session.|
|Get-childItem||This PowerShell Command gets the item and the child items in one or more specified locations.|
|Get-Command||This PowerShell Command is used to get all commands.|
|Get-Content||This PowerShell Command gets the content of the file at the specified location.|
|Get-Date||This PowerShell Command is used to get the current date and time.|
|Get-ExecutionPolicy||This PowerShell Command gets the execution policy for the current session.|
|Get-Help||This PowerShell Command displays information about PowerShell commands and concepts.|
|Get-History||This PowerShell Command displays a list of commands which are entered during the current session.|
|Get-host||This PowerShell Command gets an object which represents the current host program.|
|Get-InstalledScript||This PowerShell Command gets a script which is installed for the current user.|
|Get-Item||This PowerShell Command gets the item or a file at a particular location.|
|Get-ItemProperty||This PowerShell Command gets the properties of a particular item.|
|Get-Location||This PowerShell Command displays the current working location.|
|Get-PSBreakpoint||This PowerShell Command gets the breakpoint which is set in the current session.|
|Get-Package||This PowerShell Command displays the list of all installed packages by using package management.|
|Get-Process||This PowerShell Command gets the processes which are running on local or remote computers.|
|Get-Service||This PowerShell Command gets the services on local or remote computers.|
|Get-Transaction||This PowerShell Command gets the currently active transaction.|
|Get-Variable||This PowerShell Command gets the variable in the current console.|
|Install-package||This PowerShell Command is used to install one or more software packages.|
|Install-script||This PowerShell Command is used to install a script.|
|Invoke-commands||This PowerShell Command executes commands on local and remote computers.|
|Move-Item||This PowerShell Command is used to move an item from one location to another.|
|Move-ItemProperty||This PowerShell Command is used to move the property of an item from one location to another.|
|New-alias||This PowerShell Command creates a new alias.|
|New-Item||This PowerShell Command creates a new item.|
|New-ItemProperty||This PowerShell Command creates a new property for an item and sets its value.|
|New-Service||This PowerShell Command creates a new Window service.|
|New-variable||This PowerShell Command creates a new variable.|
|Read-Host||This PowerShell Command reads a line of inputs from the console.|
|Remove-computer||This PowerShell Command removes a local computer from its domain.|
|Remove-Item||This PowerShell Command deletes the particular item.|
|Remove-ItemProperty||This PowerShell Command deletes the property & its value from an item.|
|Remove-job||This PowerShell Command removes the background job of Windows PowerShell.|
|Remove-PSBreakpoint||This PowerShell Command deletes the breakpoint from the current console.|
|Remove-variable||This PowerShell Command deletes a variable with its value.|
|Rename-computer||This PowerShell Command is used to rename a computer.|
|Restart-Service||This PowerShell Command stops and starts one or more services.|
|Restart-computer||This PowerShell Command is used to restart the Windows operating system on local and remote computers.|
|Resume-job||This PowerShell Command is used to restart a suspended job.|
|Save-Help||This command is used to download and save the newest help files to a file system directory.|
|Save-packages||This PowerShell Command is used to save the packages to the local computer without installing them.|
|Save-Script||This PowerShell Command is used to save a script.|
|Select-string||This PowerShell Command is used to find the text in strings or files.|
|Send-MailMessage||This PowerShell Command is used to send an e-mail message.|
|Set-Alias||This PowerShell Command creates or changes the alias for a cmdlet in the current Windows PowerShell.|
|Set-content||This PowerShell Command writes the content in a file.|
|Set-Date||This PowerShell Command changes the time of the system.|
|Set-Item||This PowerShell Command changes the value of an item to the value specified in the command.|
|Set-ItemProperty||This PowerShell Command changes or creates the value of the property of an item.|
|Set-Location||This PowerShell Command is used to set the current working location to a particular location.|
|Set-PSBreakpoint||This PowerShell Command sets a breakpoint on a command, line or variable.|
|Set-ScheduledJob||This PowerShell Command changes the scheduled Job.|
|Set-Service||This PowerShell Command stops, starts and suspend services, and changes its properties.|
|Set-variable||This PowerShell Command sets the value of the variable.|
|Show-command||This PowerShell Command creates the Windows PowerShell commands in a graphical command Window.|
|Sort-Object||This PowerShell Command sorts the object by the property value.|
|Start-Job||This PowerShell Command starts a background job of Windows PowerShell.|
|Start-Process||This PowerShell Command starts on or more process on a local computer.|
|Start-services||This PowerShell Command starts one or more services which are stopped.|
|Start-transaction||This PowerShell Command starts a transaction.|
|Stop-Computer||This PowerShell Command shut down the local and remote computers.|
|Stop-Job||This PowerShell Command stops a background job of Windows PowerShell.|
|Stop-Process||This PowerShell Command stops one or more processes.|
|Stop-Services||This PowerShell Command stops one or more running services.|
|Suspend-jobs||This PowerShell Command temporarily stops the workflow jobs.|
|Suspend-Service||This PowerShell Command suspends or pauses one or more running services.|
|Undo-transaction||This PowerShell Command rollbacks the active transaction.|
|Uninstall-module||This PowerShell Command is used to uninstall a module.|
|Uninstall-Package||This PowerShell Command uninstalls one or more packages of software.|
|Unregister-ScheduledJob||This PowerShell Command deletes the scheduled jobs on the local computer|
|Update-Help||This PowerShell Command is used to download and installs the newest help files on the computer.|
|Write-Output||This PowerShell Command sends the particular object down the pipeline to the next command.|
All PowerShell Commands – How to Guide
5. How to list all PowerShell commands?
You can list all the supported All PowerShell commands by typing into the PowerShell:
However, be warned that the list is going to be long: There are over 200 commands available in Windows PowerShell!
6. How many different PowerShell commands are there?
PowerShell supports over 200 cmdlets. Because the Windows’ All PowerShell command prompt is not case-sensitive, you can type these commands in either upper or lower case. The following are the key cmdlets: Get-Location – Returns the path to the current directory.
7. What does $ in PowerShell stand for?
The ‘THIS’ toke is $ in PowerShell. It refers to the thing that is currently in the pipeline. It may be thought of as an alias for the automated variable $PSItem.
8. Are All PowerShell Commands superior to CMD?
PowerShell is an improved version of cmd. It is not only an interface but also a scripting language used to make administrative tasks easier. Most commands conducted in cmd may also be executed in PowerShell.
All PowerShell Commands – Final Words
PowerShell is a powerful command-line tool, scripting language, and platform for automation. It enables system administrators to automate regular operations, allowing them to spend more time on more important duties. We adore All PowerShell Commands at PDQ. (In fact, we offer a PowerShell blanket.) We’ve assembled a gallery of All PowerShell commands in this post to help our users save time and their sanity. Continue reading our Windows 10 guidelines for more information.