How to update PowerShell on 64bit Windows 7? Version check?


  1. Posts : 244
    win7pro 64bit
       #1

    How to update PowerShell on 64bit Windows 7? Version check?


    I need to update the current Powershell in an 64bit Windows 7 (Pro) system.


    Some questions:

    When I open powershell console and type:

    $PsVersionTable.PSVersion

    Major Minor Build Revision
    ----- ----- ----- --------
    5 1 14409 1018


    Is this the current Powershell version or the underlying Windows Management Framework version?

    When I go to

    Releases . PowerShell/PowerShell . GitHub

    then there are two win-x64 v7.0.3 packages: a *.msi and a *.zip.

    I prefer to have the portable *.zip package.

    Can I simply extract it to

    C:\Windows\System32\WindowsPowerShell\

    and let it run?

    Or are there any other preparations necessary (beside installation of newest Windows Management Framework)?

    When I enter (in Command prompt) "powershell" then this command is not recognized.

    Do I have to add manually the path to powershell.exe to the PATH environment variable (for portable Powershell)?


    Peter
      My Computer


  2. Posts : 2,798
    Windows 7 x64, Vista x64, 8.1 smartphone
       #2

    You might need to unblock the zip files first, before you can run them. Go into file>properties and check the unblock box, then select OK.

    Version 5.1 refers to both Powershell version and WMF version. To install version 6.0 and after, you need to upgrade the Powershell Core, which is what you are attempting to do, I think.
      My Computer


  3. Posts : 1,859
    Windows 7 pro
       #3

    To find the PowerShell version in Windows,

    1. Open PowerShell. ...
    2. Type or copy-paste the following command: Get-Host | Select-Object Version .
    3. In the output, you will see the version of PowerShell.
    4. Alternatively, type $PSVersionTable and hit the Enter key.
    5. See the PSVersion line.
    The first command didn't work for me until I took off the period. The second did. I would not get powershell from anywhere but M$. If it isn't being offered through automatic updates check hidden updates and make sure that other software is turned on. You might also check their website. PowerShell Documentation - PowerShell | Microsoft Docs
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:56.
Find Us