{"id":23422,"date":"2025-10-28T15:41:48","date_gmt":"2025-10-28T15:41:48","guid":{"rendered":"https:\/\/www.itarian.com\/blog\/?p=23422"},"modified":"2025-10-28T15:41:48","modified_gmt":"2025-10-28T15:41:48","slug":"how-to-check-powershell-version","status":"publish","type":"post","link":"https:\/\/www.itarian.com\/blog\/how-to-check-powershell-version\/","title":{"rendered":"Identifying Your PowerShell Version for Security and Compatibility"},"content":{"rendered":"<p data-start=\"313\" data-end=\"659\">Have you ever tried running a PowerShell script only to find it doesn\u2019t work as expected? The issue might not be the code\u2014it could be your PowerShell version. Knowing <strong data-start=\"480\" data-end=\"515\">how to check PowerShell version<\/strong> is essential for IT managers, cybersecurity professionals, and developers who rely on automation, scripting, and system administration tools.<\/p>\n<p data-start=\"661\" data-end=\"1016\">PowerShell evolves frequently, introducing new features and enhanced security measures. Using an outdated version can limit functionality, cause script errors, or even introduce vulnerabilities. In this article, we\u2019ll explore various methods to identify your PowerShell version and explain why it matters for enterprise security and system optimization.<\/p>\n<hr data-start=\"1018\" data-end=\"1021\" \/>\n<h2 data-start=\"1023\" data-end=\"1071\">Why You Should Know Your PowerShell Version<\/h2>\n<p data-start=\"1073\" data-end=\"1217\">Understanding your PowerShell version isn\u2019t just a technical detail\u2014it\u2019s critical for <strong data-start=\"1159\" data-end=\"1215\">system compatibility, automation, and cybersecurity.<\/strong><\/p>\n<h3 data-start=\"1219\" data-end=\"1252\"><strong data-start=\"1223\" data-end=\"1250\">1. Script Compatibility<\/strong><\/h3>\n<p data-start=\"1253\" data-end=\"1401\">Different versions of PowerShell introduce or deprecate cmdlets (commands). If your script relies on newer cmdlets, it may fail on older versions.<\/p>\n<h3 data-start=\"1403\" data-end=\"1437\"><strong data-start=\"1407\" data-end=\"1435\">2. Security Enhancements<\/strong><\/h3>\n<p data-start=\"1438\" data-end=\"1622\">Later PowerShell versions\u2014especially PowerShell 7 and above\u2014offer better <strong data-start=\"1511\" data-end=\"1538\">logging, script signing<\/strong>, and <strong data-start=\"1544\" data-end=\"1573\">execution policy controls<\/strong>, essential for preventing unauthorized access.<\/p>\n<h3 data-start=\"1624\" data-end=\"1659\"><strong data-start=\"1628\" data-end=\"1657\">3. Cross-Platform Support<\/strong><\/h3>\n<p data-start=\"1660\" data-end=\"1807\">PowerShell Core (starting from version 6) supports <strong data-start=\"1711\" data-end=\"1740\">Windows, macOS, and Linux<\/strong>. Knowing your version helps ensure cross-platform compatibility.<\/p>\n<h3 data-start=\"1809\" data-end=\"1847\"><strong data-start=\"1813\" data-end=\"1845\">4. Compliance and Governance<\/strong><\/h3>\n<p data-start=\"1848\" data-end=\"2025\">IT administrators in regulated industries must verify PowerShell versions for <strong data-start=\"1926\" data-end=\"1963\">audit and compliance requirements<\/strong>, particularly when enforcing secure scripting environments.<\/p>\n<hr data-start=\"2027\" data-end=\"2030\" \/>\n<h2 data-start=\"2032\" data-end=\"2083\">How to Check PowerShell Version Using Commands<\/h2>\n<p data-start=\"2085\" data-end=\"2186\">The easiest and most common way to determine your PowerShell version is by using built-in commands.<\/p>\n<h3 data-start=\"2188\" data-end=\"2244\"><strong data-start=\"2192\" data-end=\"2242\">Method 1: Using the <code data-start=\"2214\" data-end=\"2231\">$PSVersionTable<\/code> Variable<\/strong><\/h3>\n<ol data-start=\"2246\" data-end=\"2443\">\n<li data-start=\"2246\" data-end=\"2353\">\n<p data-start=\"2249\" data-end=\"2271\">Open <strong data-start=\"2254\" data-end=\"2268\">PowerShell<\/strong>.<\/p>\n<ul data-start=\"2275\" data-end=\"2353\">\n<li data-start=\"2275\" data-end=\"2353\">\n<p data-start=\"2277\" data-end=\"2353\">Press <strong data-start=\"2283\" data-end=\"2298\">Windows + X<\/strong>, then select <strong data-start=\"2312\" data-end=\"2334\">Windows PowerShell<\/strong> or <strong data-start=\"2338\" data-end=\"2350\">Terminal<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"2354\" data-end=\"2421\">\n<p data-start=\"2357\" data-end=\"2386\">Type the following command:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-variable\">$PSVersionTable<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"2422\" data-end=\"2443\">\n<p data-start=\"2425\" data-end=\"2443\">Press <strong data-start=\"2431\" data-end=\"2440\">Enter<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p data-start=\"2445\" data-end=\"2499\">You\u2019ll see detailed information displayed like this:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-type\">Name<\/span>                           <span class=\"hljs-keyword\">Value<\/span><br \/>\n<span class=\"hljs-comment\">----                           -----<\/span><br \/>\nPSVersion                      <span class=\"hljs-number\">7.3<\/span><span class=\"hljs-number\">.4<\/span><br \/>\nPSEdition                      Core<br \/>\nGitCommitId                    <span class=\"hljs-number\">7.3<\/span><span class=\"hljs-number\">.4<\/span><br \/>\nOS                             Microsoft Windows <span class=\"hljs-number\">10.0<\/span><span class=\"hljs-number\">.22621<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"2754\" data-end=\"2822\">The number beside <strong data-start=\"2772\" data-end=\"2785\">PSVersion<\/strong> indicates your PowerShell version.<\/p>\n<p data-start=\"2824\" data-end=\"2975\"><strong data-start=\"2824\" data-end=\"2832\">Tip:<\/strong> If the result doesn\u2019t display <code data-start=\"2863\" data-end=\"2874\">PSEdition<\/code> as \u201cCore,\u201d you\u2019re using <strong data-start=\"2899\" data-end=\"2938\">Windows PowerShell (5.1 or earlier)<\/strong> rather than PowerShell Core or 7+.<\/p>\n<hr data-start=\"2977\" data-end=\"2980\" \/>\n<h3 data-start=\"2982\" data-end=\"3035\"><strong data-start=\"2986\" data-end=\"3033\">Method 2: Using the <code data-start=\"3008\" data-end=\"3023\">$Host.Version<\/code> Command<\/strong><\/h3>\n<p data-start=\"3037\" data-end=\"3065\">For a simpler output, run:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-variable\">$Host<\/span>.Version<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"3090\" data-end=\"3144\">This returns a version number like <code data-start=\"3125\" data-end=\"3141\">5.1.22621.2506<\/code>.<\/p>\n<p data-start=\"3146\" data-end=\"3242\">While it\u2019s not as detailed as <code data-start=\"3176\" data-end=\"3193\">$PSVersionTable<\/code>, it\u2019s a quick way to check basic version info.<\/p>\n<hr data-start=\"3244\" data-end=\"3247\" \/>\n<h3 data-start=\"3249\" data-end=\"3292\"><strong data-start=\"3253\" data-end=\"3290\">Method 3: Using <code data-start=\"3271\" data-end=\"3281\">Get-Host<\/code> Cmdlet<\/strong><\/h3>\n<p data-start=\"3294\" data-end=\"3313\">Run this command:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-keyword\">Get<\/span><span class=\"hljs-operator\">-<\/span>Host<br \/>\n<\/code><\/div>\n<\/div>\n<p data-start=\"3334\" data-end=\"3427\">This provides details about the PowerShell host environment, including version information.<\/p>\n<p data-start=\"3429\" data-end=\"3445\">Sample output:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-attr\">Name             :<\/span> <span class=\"hljs-string\">ConsoleHost<\/span><br \/>\n<span class=\"hljs-attr\">Version          :<\/span> <span class=\"hljs-number\">7.2<\/span><span class=\"hljs-number\">.8<\/span><br \/>\n<span class=\"hljs-attr\">InstanceId       :<\/span> <span class=\"hljs-number\">12345678<\/span><span class=\"hljs-string\">-ABCD-4E5F-9ABC-1234567890AB<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<hr data-start=\"3567\" data-end=\"3570\" \/>\n<h3 data-start=\"3572\" data-end=\"3618\"><strong data-start=\"3576\" data-end=\"3616\">Method 4: Using Command Prompt (CMD)<\/strong><\/h3>\n<p data-start=\"3620\" data-end=\"3710\">If you\u2019re in the <strong data-start=\"3637\" data-end=\"3655\">Command Prompt<\/strong> and not PowerShell, you can still check the version:<\/p>\n<ol data-start=\"3712\" data-end=\"3841\">\n<li data-start=\"3712\" data-end=\"3741\">\n<p data-start=\"3715\" data-end=\"3741\">Open <strong data-start=\"3720\" data-end=\"3738\">Command Prompt<\/strong>.<\/p>\n<\/li>\n<li data-start=\"3742\" data-end=\"3819\">\n<p data-start=\"3745\" data-end=\"3752\">Type:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\">powershell -<span class=\"hljs-built_in\">command<\/span> <span class=\"hljs-string\">\"<span class=\"hljs-variable\">$PSVersionTable<\/span><\/span>.PSVersion\"<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"3820\" data-end=\"3841\">\n<p data-start=\"3823\" data-end=\"3841\">Press <strong data-start=\"3829\" data-end=\"3838\">Enter<\/strong>.<\/p>\n<\/li>\n<\/ol>\n<p data-start=\"3843\" data-end=\"3906\">The output will show your PowerShell version directly in CMD.<\/p>\n<p data-start=\"3908\" data-end=\"3975\">This is useful for remote management or when using batch scripts.<\/p>\n<hr data-start=\"3977\" data-end=\"3980\" \/>\n<h2 data-start=\"3982\" data-end=\"4038\">How to Check PowerShell Version in Windows Settings<\/h2>\n<p data-start=\"4040\" data-end=\"4158\">For IT professionals managing multiple systems, the graphical method can be faster when working on end-user devices.<\/p>\n<h3 data-start=\"4160\" data-end=\"4176\"><strong data-start=\"4164\" data-end=\"4174\">Steps:<\/strong><\/h3>\n<ol data-start=\"4177\" data-end=\"4420\">\n<li data-start=\"4177\" data-end=\"4225\">\n<p data-start=\"4180\" data-end=\"4225\">Press <strong data-start=\"4186\" data-end=\"4201\">Windows + I<\/strong> to open <strong data-start=\"4210\" data-end=\"4222\">Settings<\/strong>.<\/p>\n<\/li>\n<li data-start=\"4226\" data-end=\"4284\">\n<p data-start=\"4229\" data-end=\"4284\">Go to <strong data-start=\"4235\" data-end=\"4281\">Apps \u2192 Installed Apps (or Apps &amp; Features)<\/strong>.<\/p>\n<\/li>\n<li data-start=\"4285\" data-end=\"4360\">\n<p data-start=\"4288\" data-end=\"4360\">Scroll through the list and locate <strong data-start=\"4323\" data-end=\"4337\">PowerShell<\/strong> or <strong data-start=\"4341\" data-end=\"4357\">PowerShell 7<\/strong>.<\/p>\n<\/li>\n<li data-start=\"4361\" data-end=\"4420\">\n<p data-start=\"4364\" data-end=\"4420\">The version number will appear alongside the app name.<\/p>\n<\/li>\n<\/ol>\n<p data-start=\"4422\" data-end=\"4507\">If you have multiple versions installed (like 5.1 and 7.x), you\u2019ll see both listed.<\/p>\n<hr data-start=\"4509\" data-end=\"4512\" \/>\n<h2 data-start=\"4514\" data-end=\"4566\">Checking PowerShell Version via Registry Editor<\/h2>\n<p data-start=\"4568\" data-end=\"4682\">For advanced system auditing or automation, you can verify PowerShell versions through the <strong data-start=\"4659\" data-end=\"4679\">Windows Registry<\/strong>.<\/p>\n<h3 data-start=\"4684\" data-end=\"4700\"><strong data-start=\"4688\" data-end=\"4698\">Steps:<\/strong><\/h3>\n<ol data-start=\"4701\" data-end=\"4965\">\n<li data-start=\"4701\" data-end=\"4759\">\n<p data-start=\"4704\" data-end=\"4759\">Press <strong data-start=\"4710\" data-end=\"4725\">Windows + R<\/strong>, type <code data-start=\"4732\" data-end=\"4741\">regedit<\/code>, and hit Enter.<\/p>\n<\/li>\n<li data-start=\"4760\" data-end=\"4864\">\n<p data-start=\"4763\" data-end=\"4777\">Navigate to:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\">HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\PowerShell\\3\\PowerShellEngine<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"4865\" data-end=\"4917\">\n<p data-start=\"4868\" data-end=\"4917\">Look for the entry named <strong data-start=\"4893\" data-end=\"4914\">PowerShellVersion<\/strong>.<\/p>\n<\/li>\n<li data-start=\"4918\" data-end=\"4965\">\n<p data-start=\"4921\" data-end=\"4965\">Its value indicates the installed version.<\/p>\n<\/li>\n<\/ol>\n<p data-start=\"4967\" data-end=\"5098\">This method is especially useful for <strong data-start=\"5004\" data-end=\"5018\">IT scripts<\/strong> and automated deployment tools verifying version compliance across endpoints.<\/p>\n<hr data-start=\"5100\" data-end=\"5103\" \/>\n<h2 data-start=\"5105\" data-end=\"5139\">PowerShell Versions Explained<\/h2>\n<p data-start=\"5141\" data-end=\"5254\">To understand version differences, here\u2019s a quick overview of major PowerShell releases and their significance:<\/p>\n<div class=\"_tableContainer_1rjym_1\">\n<div class=\"group _tableWrapper_1rjym_13 flex w-fit flex-col-reverse\" tabindex=\"-1\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"5256\" data-end=\"5751\">\n<thead data-start=\"5256\" data-end=\"5307\">\n<tr data-start=\"5256\" data-end=\"5307\">\n<th data-start=\"5256\" data-end=\"5270\" data-col-size=\"sm\"><strong data-start=\"5258\" data-end=\"5269\">Version<\/strong><\/th>\n<th data-start=\"5270\" data-end=\"5285\" data-col-size=\"sm\"><strong data-start=\"5272\" data-end=\"5284\">Platform<\/strong><\/th>\n<th data-start=\"5285\" data-end=\"5307\" data-col-size=\"md\"><strong data-start=\"5287\" data-end=\"5303\">Key Features<\/strong><\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"5361\" data-end=\"5751\">\n<tr data-start=\"5361\" data-end=\"5424\">\n<td data-start=\"5361\" data-end=\"5373\" data-col-size=\"sm\">1.0 &#8211; 2.0<\/td>\n<td data-start=\"5373\" data-end=\"5388\" data-col-size=\"sm\">Windows only<\/td>\n<td data-start=\"5388\" data-end=\"5424\" data-col-size=\"md\">Basic automation and scripting<\/td>\n<\/tr>\n<tr data-start=\"5425\" data-end=\"5490\">\n<td data-start=\"5425\" data-end=\"5437\" data-col-size=\"sm\">3.0 &#8211; 4.0<\/td>\n<td data-start=\"5437\" data-end=\"5447\" data-col-size=\"sm\">Windows<\/td>\n<td data-start=\"5447\" data-end=\"5490\" data-col-size=\"md\">Workflow support and cmdlet expansion<\/td>\n<\/tr>\n<tr data-start=\"5491\" data-end=\"5584\">\n<td data-start=\"5491\" data-end=\"5503\" data-col-size=\"sm\">5.0 &#8211; 5.1<\/td>\n<td data-start=\"5503\" data-end=\"5513\" data-col-size=\"sm\">Windows<\/td>\n<td data-start=\"5513\" data-end=\"5584\" data-col-size=\"md\">Script signing, security enhancements, and Windows 10 integration<\/td>\n<\/tr>\n<tr data-start=\"5585\" data-end=\"5652\">\n<td data-start=\"5585\" data-end=\"5598\" data-col-size=\"sm\">6.0 (Core)<\/td>\n<td data-start=\"5598\" data-end=\"5615\" data-col-size=\"sm\">Cross-platform<\/td>\n<td data-start=\"5615\" data-end=\"5652\" data-col-size=\"md\">Open-source, built on .NET Core<\/td>\n<\/tr>\n<tr data-start=\"5653\" data-end=\"5751\">\n<td data-start=\"5653\" data-end=\"5660\" data-col-size=\"sm\">7.0+<\/td>\n<td data-start=\"5660\" data-end=\"5677\" data-col-size=\"sm\">Cross-platform<\/td>\n<td data-start=\"5677\" data-end=\"5751\" data-col-size=\"md\">Unified version with improved speed, logging, and parallel execution<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p data-start=\"5753\" data-end=\"5906\"><strong data-start=\"5753\" data-end=\"5772\">Recommendation:<\/strong><br data-start=\"5772\" data-end=\"5775\" \/>For modern enterprise environments, upgrade to <strong data-start=\"5822\" data-end=\"5847\">PowerShell 7 or later<\/strong> for better <strong data-start=\"5859\" data-end=\"5903\">security, compatibility, and performance<\/strong>.<\/p>\n<hr data-start=\"5908\" data-end=\"5911\" \/>\n<h2 data-start=\"5913\" data-end=\"5968\">How to Check PowerShell Version on macOS and Linux<\/h2>\n<p data-start=\"5970\" data-end=\"6097\">PowerShell is no longer exclusive to Windows. If you use <strong data-start=\"6027\" data-end=\"6046\">PowerShell Core<\/strong>, it\u2019s also available on <strong data-start=\"6071\" data-end=\"6080\">macOS<\/strong> and <strong data-start=\"6085\" data-end=\"6094\">Linux<\/strong>.<\/p>\n<h3 data-start=\"6099\" data-end=\"6119\"><strong data-start=\"6103\" data-end=\"6117\">For macOS:<\/strong><\/h3>\n<ol data-start=\"6120\" data-end=\"6228\">\n<li data-start=\"6120\" data-end=\"6143\">\n<p data-start=\"6123\" data-end=\"6143\">Open <strong data-start=\"6128\" data-end=\"6140\">Terminal<\/strong>.<\/p>\n<\/li>\n<li data-start=\"6144\" data-end=\"6178\">\n<p data-start=\"6147\" data-end=\"6154\">Type:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-attribute\">pwsh<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"6179\" data-end=\"6228\">\n<p data-start=\"6182\" data-end=\"6193\">Then run:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-variable\">$PSVersionTable<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ol>\n<h3 data-start=\"6230\" data-end=\"6266\"><strong data-start=\"6234\" data-end=\"6264\">For Linux (Ubuntu\/Debian):<\/strong><\/h3>\n<ol data-start=\"6267\" data-end=\"6388\">\n<li data-start=\"6267\" data-end=\"6290\">\n<p data-start=\"6270\" data-end=\"6290\">Open <strong data-start=\"6275\" data-end=\"6287\">Terminal<\/strong>.<\/p>\n<\/li>\n<li data-start=\"6291\" data-end=\"6326\">\n<p data-start=\"6294\" data-end=\"6302\">Enter:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-attribute\">pwsh<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"6327\" data-end=\"6388\">\n<p data-start=\"6330\" data-end=\"6353\">Run the same command:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\"><span class=\"hljs-variable\">$PSVersionTable<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ol>\n<p data-start=\"6390\" data-end=\"6458\">You\u2019ll see the version and edition displayed just like in Windows.<\/p>\n<hr data-start=\"6460\" data-end=\"6463\" \/>\n<h2 data-start=\"6465\" data-end=\"6511\">Updating to the Latest PowerShell Version<\/h2>\n<p data-start=\"6513\" data-end=\"6674\">Knowing <strong data-start=\"6521\" data-end=\"6556\">how to check PowerShell version<\/strong> is only half the task. Keeping it <strong data-start=\"6591\" data-end=\"6605\">up to date<\/strong> ensures you benefit from the latest features and security patches.<\/p>\n<h3 data-start=\"6676\" data-end=\"6715\"><strong data-start=\"6680\" data-end=\"6713\">1. Check for Updates Manually<\/strong><\/h3>\n<p data-start=\"6716\" data-end=\"6850\">Visit the official PowerShell GitHub page:<br data-start=\"6758\" data-end=\"6761\" \/>\ud83d\udd17 <a class=\"decorated-link\" href=\"https:\/\/github.com\/PowerShell\/PowerShell\" target=\"_new\" rel=\"noopener\" data-start=\"6764\" data-end=\"6848\">https:\/\/github.com\/PowerShell\/PowerShell<\/a><\/p>\n<h3 data-start=\"6852\" data-end=\"6895\"><strong data-start=\"6856\" data-end=\"6893\">2. Update via Winget (Windows 11)<\/strong><\/h3>\n<p data-start=\"6896\" data-end=\"6902\">Run:<\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\">winget install --<span class=\"hljs-built_in\">id<\/span> Microsoft.Powershell --<span class=\"hljs-built_in\">source<\/span> winget<br \/>\n<\/code><\/div>\n<\/div>\n<h3 data-start=\"6971\" data-end=\"7021\"><strong data-start=\"6975\" data-end=\"7019\">3. Update via MSI Installer (Windows 10)<\/strong><\/h3>\n<p data-start=\"7022\" data-end=\"7091\">Download the latest MSI package and follow the installation wizard.<\/p>\n<h3 data-start=\"7093\" data-end=\"7140\"><strong data-start=\"7097\" data-end=\"7138\">4. Use Package Managers (macOS\/Linux)<\/strong><\/h3>\n<ul data-start=\"7141\" data-end=\"7265\">\n<li data-start=\"7141\" data-end=\"7202\">\n<p data-start=\"7143\" data-end=\"7155\"><strong data-start=\"7143\" data-end=\"7153\">macOS:<\/strong><\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\">brew upgrade <span class=\"hljs-attr\">--cask<\/span> powershell<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<li data-start=\"7203\" data-end=\"7265\">\n<p data-start=\"7205\" data-end=\"7217\"><strong data-start=\"7205\" data-end=\"7215\">Linux:<\/strong><\/p>\n<div class=\"contain-inline-size rounded-2xl relative bg-token-sidebar-surface-primary\">\n<div class=\"sticky top-9\">\n<div class=\"absolute end-0 bottom-0 flex h-9 items-center pe-2\">\n<div class=\"bg-token-bg-elevated-secondary text-token-text-secondary flex items-center gap-4 rounded-sm px-2 font-sans text-xs\"><\/div>\n<\/div>\n<\/div>\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"whitespace-pre!\">sudo apt-get upgrade powershell<br \/>\n<\/code><\/div>\n<\/div>\n<\/li>\n<\/ul>\n<p data-start=\"7267\" data-end=\"7354\">After upgrading, recheck the version using <code data-start=\"7310\" data-end=\"7327\">$PSVersionTable<\/code> to confirm installation.<\/p>\n<hr data-start=\"7356\" data-end=\"7359\" \/>\n<h2 data-start=\"7361\" data-end=\"7402\">PowerShell Version and Cybersecurity<\/h2>\n<p data-start=\"7404\" data-end=\"7517\">In cybersecurity and IT governance, the PowerShell version determines how secure your scripting environment is.<\/p>\n<h3 data-start=\"7519\" data-end=\"7556\"><strong data-start=\"7523\" data-end=\"7554\">1. Execution Policy Control<\/strong><\/h3>\n<p data-start=\"7557\" data-end=\"7697\">Later versions offer granular controls like <strong data-start=\"7601\" data-end=\"7614\">AllSigned<\/strong>, <strong data-start=\"7616\" data-end=\"7632\">RemoteSigned<\/strong>, and <strong data-start=\"7638\" data-end=\"7652\">Restricted<\/strong>, preventing unauthorized script execution.<\/p>\n<h3 data-start=\"7699\" data-end=\"7741\"><strong data-start=\"7703\" data-end=\"7739\">2. Enhanced Logging and Auditing<\/strong><\/h3>\n<p data-start=\"7742\" data-end=\"7882\">PowerShell 5.1+ includes advanced logging (Module, ScriptBlock, and Transcription logs), crucial for incident response and threat hunting.<\/p>\n<h3 data-start=\"7884\" data-end=\"7929\"><strong data-start=\"7888\" data-end=\"7927\">3. Just Enough Administration (JEA)<\/strong><\/h3>\n<p data-start=\"7930\" data-end=\"8043\">Introduced in PowerShell 5, JEA minimizes attack surfaces by granting least-privilege access to administrators.<\/p>\n<h3 data-start=\"8045\" data-end=\"8096\"><strong data-start=\"8049\" data-end=\"8094\">4. Anti-Malware Scanning Interface (AMSI)<\/strong><\/h3>\n<p data-start=\"8097\" data-end=\"8230\">Newer PowerShell builds integrate with AMSI to detect malicious scripts before execution \u2014 a key advantage for enterprise networks.<\/p>\n<p data-start=\"8232\" data-end=\"8393\"><strong data-start=\"8232\" data-end=\"8247\">Conclusion:<\/strong><br data-start=\"8247\" data-end=\"8250\" \/>Running an outdated PowerShell version exposes systems to vulnerabilities. Always verify and maintain the latest version across your network.<\/p>\n<hr data-start=\"8395\" data-end=\"8398\" \/>\n<h2 data-start=\"8400\" data-end=\"8437\">Frequently Asked Questions (FAQ)<\/h2>\n<h3 data-start=\"8439\" data-end=\"8493\"><strong data-start=\"8443\" data-end=\"8491\">1. What is the latest version of PowerShell?<\/strong><\/h3>\n<p data-start=\"8494\" data-end=\"8612\">As of 2025, the latest stable version is <strong data-start=\"8535\" data-end=\"8555\">PowerShell 7.4.x<\/strong>, offering cross-platform support and security updates.<\/p>\n<h3 data-start=\"8614\" data-end=\"8678\"><strong data-start=\"8618\" data-end=\"8676\">2. How do I check my PowerShell version in Windows 10?<\/strong><\/h3>\n<p data-start=\"8679\" data-end=\"8765\">Open PowerShell and type <code data-start=\"8704\" data-end=\"8721\">$PSVersionTable<\/code>. The version appears next to <code data-start=\"8751\" data-end=\"8762\">PSVersion<\/code>.<\/p>\n<h3 data-start=\"8767\" data-end=\"8830\"><strong data-start=\"8771\" data-end=\"8828\">3. Is PowerShell Core the same as Windows PowerShell?<\/strong><\/h3>\n<p data-start=\"8831\" data-end=\"8943\">No. PowerShell Core (6+) runs on multiple platforms, while Windows PowerShell (5.1 and below) is Windows-only.<\/p>\n<h3 data-start=\"8945\" data-end=\"9001\"><strong data-start=\"8949\" data-end=\"8999\">4. Why should I upgrade my PowerShell version?<\/strong><\/h3>\n<p data-start=\"9002\" data-end=\"9110\">Upgrading ensures script compatibility, access to new features, better performance, and stronger security.<\/p>\n<h3 data-start=\"9112\" data-end=\"9175\"><strong data-start=\"9116\" data-end=\"9173\">5. Can I have multiple PowerShell versions installed?<\/strong><\/h3>\n<p data-start=\"9176\" data-end=\"9281\">Yes, PowerShell 7+ can coexist with Windows PowerShell 5.1. You can choose which one to run as default.<\/p>\n<hr data-start=\"9283\" data-end=\"9286\" \/>\n<h2 data-start=\"9288\" data-end=\"9307\">Final Thoughts<\/h2>\n<p data-start=\"9309\" data-end=\"9611\">Knowing <strong data-start=\"9317\" data-end=\"9352\">how to check PowerShell version<\/strong> is essential for maintaining compatibility, security, and efficiency across your IT environment. Whether you\u2019re automating tasks, enforcing compliance policies, or securing endpoints, staying informed about your PowerShell build ensures seamless operation.<\/p>\n<p data-start=\"9613\" data-end=\"9808\">Outdated scripting environments can pose risks\u2014especially in corporate networks. Always verify, update, and manage PowerShell versions across all devices for maximum performance and protection.<\/p>\n<p data-start=\"9810\" data-end=\"9949\">Want to simplify IT management and security automation?<br data-start=\"9865\" data-end=\"9868\" \/><a class=\"decorated-link\" href=\"https:\/\/www.itarian.com\/signup\/\" target=\"_new\" rel=\"noopener\" data-start=\"9871\" data-end=\"9947\">Start your free trial with ITarian today.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever tried running a PowerShell script only to find it doesn\u2019t work as expected? The issue might not be the code\u2014it could be your PowerShell version. Knowing how to check PowerShell version is essential for IT managers, cybersecurity professionals, and developers who rely on automation, scripting, and system administration tools. PowerShell evolves frequently,&hellip; <span class=\"readmore\"><\/span><\/p>\n","protected":false},"author":11,"featured_media":23772,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-23422","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ticketing-system","entry"],"_links":{"self":[{"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/posts\/23422","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/comments?post=23422"}],"version-history":[{"count":1,"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/posts\/23422\/revisions"}],"predecessor-version":[{"id":23432,"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/posts\/23422\/revisions\/23432"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/media\/23772"}],"wp:attachment":[{"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/media?parent=23422"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/categories?post=23422"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itarian.com\/blog\/wp-json\/wp\/v2\/tags?post=23422"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}