{"id":7029,"date":"2022-10-28T15:08:30","date_gmt":"2022-10-28T15:08:30","guid":{"rendered":"https:\/\/www.geekdecoder.com\/?p=7029"},"modified":"2022-10-28T15:08:30","modified_gmt":"2022-10-28T15:08:30","slug":"how-to-update-powershell-windows-11","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2022\/10\/28\/how-to-update-powershell-windows-11\/","title":{"rendered":"How to update Powershell Windows 11"},"content":{"rendered":"\n<p>If you get a notice that there is a new version of PowerShell, you can update it easily. Sometimes you see an update notice when you open PowerShell.<\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-04-04.png\"><img loading=\"lazy\" decoding=\"async\" width=\"887\" height=\"548\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-04-04.png\" alt=\"\" class=\"wp-image-7030\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-04-04.png 887w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-04-04-300x185.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-04-04-768x474.png 768w\" sizes=\"auto, (max-width: 887px) 100vw, 887px\" \/><\/a><figcaption class=\"wp-element-caption\">PowerShell<\/figcaption><\/figure>\n\n\n\n<p>You can also check the version with a command: $PSVersionTable<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\n$PSVersionTable\n<\/pre><\/div>\n\n\n<p>Output:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nName                           Value\n----                           -----\nPSVersion                      7.2.6\nPSEdition                      Core\nGitCommitId                    7.2.6\nOS                             Microsoft Windows 10.0.22621\nPlatform                       Win32NT\nPSCompatibleVersions           {1.0, 2.0, 3.0, 4.0\u2026}\nPSRemotingProtocolVersion      2.3\nSerializationVersion           1.1.0.1\nWSManStackVersion              3.0\n<\/pre><\/div>\n\n\n<p>The best way to update PowerShell is through the command line, using winget.<\/p>\n\n\n\n<p><strong>To do this, open PowerShell as Administrator.<\/strong><\/p>\n\n\n\n<p>To download and install the update, open up a PowerShell tab in Terminal. Type or copy and paste the following command at the command line and press Enter. This command will download and install the latest version of PowerShell from Microsoft\u2019s GitHub repository:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nwinget install --id Microsoft.Powershell --source winget\n<\/pre><\/div>\n\n\n<p>Note: That command downloads the latest stable PowerShell release. If you want the preview version of PowerShell \u2014 which is basically the open beta version \u2014 replace Microsoft.Powershell with Microsoft.PowerShell.Preview in the previous command.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\nwinget install --id Microsoft.Powershell.Preview --source winget\n<\/pre><\/div>\n\n\n<p>Now we can see the new version:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-22-27.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-22-27-1024x576.png\" alt=\"\" class=\"wp-image-7039\" srcset=\"https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-22-27-1024x576.png 1024w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-22-27-300x169.png 300w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-22-27-768x432.png 768w, https:\/\/www.qbytes.cloud\/wp-content\/uploads\/2022\/10\/2022-10-28_10-22-27.png 1103w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">New PowerShell Version<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>If you get a notice that there is a new version of PowerShell, you can update it easily. Sometimes you see an update notice when you open PowerShell.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[88,124,125,126],"tags":[141,143],"class_list":["post-7029","post","type-post","status-publish","format-standard","hentry","category-powershell","category-windows-2008-server","category-windows-2012-server","category-windows-desktop","tag-powershell","tag-windows-11"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7029","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=7029"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/7029\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=7029"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=7029"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=7029"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}