Check your PowerShell version right now
Open PowerShell on your Windows machine and type $PSVersionTable, then press Enter. A table appears showing your version number in the first column. That number — usually something like 5.1 or 7.2 — is what you need to know.
If you need the version in a single line instead of a full table, type $PSVersionTable.PSVersion and press Enter. Both commands work the same way; they just show the information differently.
The reason you might need this: some scripts and tools require a specific PowerShell version to run. Knowing which version you have tells you whether a particular tool will work on your machine, or whether you need to update first.
Key Takeaways
- Type $PSVersionTable in PowerShell and press Enter to see your full version information in a table format.
- Windows comes with PowerShell 5.1 by default on most machines, but newer versions are available as separate downloads.
- PowerShell 7 and later are separate from the built-in Windows version and must be installed manually if you need them.
- The version number appears in the PSVersion column of the table, usually formatted as a major and minor number like 5.1 or 7.3.
Opening PowerShell on your machine
Press the Windows key and type powershell. Click on "Windows PowerShell" in the search results. A dark blue window opens — this is PowerShell.
If you see "Windows PowerShell (x86)" in the results, that is the 32-bit version. Use the regular "Windows PowerShell" instead, which is the 64-bit version. The 64-bit version is what most tools and scripts expect.
On Windows 11, you might see "Windows Terminal" in the search results instead. Windows Terminal is a newer container that can run PowerShell inside it. Either one works for checking your version.
Understanding what the version table shows
When you run $PSVersionTable, you see several rows of information. The most important one is PSVersion — that is your PowerShell version number. Ignore the other rows for now; they show details about your system that you rarely need.
The PSVersion number has two parts: the major version (the first number) and the minor version (the second number). PowerShell 5.1 means major version 5, minor version 1. PowerShell 7.3 means major version 7, minor version 3. When someone says "you need PowerShell 7 or later," they mean the major version number should be 7 or higher.
You might also see a PSEdition row showing either "Desktop" or "Core". Desktop is the older built-in version. Core is the newer version that Microsoft released separately. Most modern tools ask for Core, but some older ones still need Desktop.
The difference between built-in and downloadable PowerShell
Windows 10 and Windows 11 come with PowerShell 5.1 already installed. This is called the Desktop edition. It works for most everyday tasks, but some newer tools and scripts require PowerShell 7 or later, which is called PowerShell Core.
If your version check shows 5.1 and you need version 7, you cannot upgrade the built-in version. Instead, you download PowerShell Core separately from Microsoft's GitHub page. Installing it does not remove PowerShell 5.1; both versions can live on your machine at the same time.
When you install PowerShell Core, it appears as "PowerShell" (without the word "Windows") in your search results. You can then choose which version to open depending on what you are doing. Most people keep both installed.
Checking the version from Command Prompt instead
If you prefer to use Command Prompt rather than PowerShell itself, you can check the version from there. Open Command Prompt and type powershell -Command "$PSVersionTable.PSVersion", then press Enter. PowerShell runs that single command and shows you the version number, then closes.
This method is useful if you are writing a batch script or if you need to check the version without opening PowerShell directly. The result is the same as opening PowerShell and typing the command yourself.
What to do if you need a newer version
If a tool or script tells you that you need PowerShell 7 or later, and your version check shows 5.1, you need to download PowerShell Core. Go to the PowerShell releases page on GitHub (search for "PowerShell releases GitHub" in your browser) and download the Windows installer for your system — choose the 64-bit version unless you have a specific reason not to.
Run the installer and follow the prompts. When it finishes, close any open PowerShell windows and open a new one. Search for "PowerShell" and you should see both the old "Windows PowerShell" and the new "PowerShell" in your results. Open the new one and run $PSVersionTable.PSVersion again to confirm the newer version is installed.
Updating PowerShell does not affect your system settings or other programs. It is just adding a new tool to your machine. You can uninstall it from Settings > Apps > Installed Apps if you ever need to remove it.
Frequently Asked Questions
Why do I need to know my PowerShell version?
Some scripts and administrative tools only work with specific PowerShell versions. Knowing your version tells you whether a tool will run on your machine, or whether you need to update first. It also helps when you are troubleshooting problems or asking for help online.
Can I have both PowerShell 5.1 and PowerShell 7 on the same computer?
Yes. PowerShell 5.1 is built into Windows and cannot be removed. PowerShell 7 (Core) is a separate download that installs alongside it. You can open whichever version you need for the task at hand. Most people keep both installed.
What if the version table does not appear when I type the command?
Make sure you typed the command exactly: $PSVersionTable with a dollar sign at the start. If you still see an error, try right-clicking PowerShell in the search results and choosing "Run as administrator," then type the command again. Some system configurations require administrator access to view version information.
Is PowerShell 5.1 old and should I upgrade?
PowerShell 5.1 still works for most tasks, but newer tools increasingly require PowerShell 7 or later. If the tools you use work fine with 5.1, there is no urgent reason to upgrade. If a specific tool tells you it needs version 7, then download PowerShell Core at that point.
Does updating PowerShell affect my other programs?
No. PowerShell is a command-line tool that runs independently. Installing a newer version does not change your system settings, remove other programs, or affect how Windows runs. You can uninstall it anytime without affecting anything else on your machine.