locked
Unable to upgrade PowerShell 4 to 5. "the update is not applicable to your computer" RRS feed

  • 質問

  • When attempting to upgrade from PowerShell 4.0.0 to 5.0 or 5.1, I get "the update is not applicable to your computer".

    I have Windows 7 SP 1 64 bit. I have .NET 4.6 installed. My current version of PowerShell is 4.0.0.

    I looked at this link https://support.microsoft.com/en-sg/help/3057448/the-update-is-not-applicable-to-your-computer-error-when-you-install-w

    but have not found the solution or the issue. I need PowerShell 5+ for Azure work.

    Trying Win7AndW2K8R2-KB3191566-x64.msu
    2018年4月19日 15:22

回答

  • My Solution...

    Great suggestions and I tried pretty much everything offered.  I kept running into errors with any Powershell related upgrade or .Net 4.7 or VS 2017.  I found several other people with the same issue.  I bit the bullet and started with a fresh install Windows 7 64 bit.  I was then able to install VS 2017 with Azure and Web Dev options selected with no error.  I was also able to install the Powershell upgrades.  Starting with Powershell 2, In ran Win7AndW2K8R2-KB3134760-x64 followed by Win7AndW2K8R2-KB3191566-x64 with no issue.  Now I have Powershell 5.1

    2018年5月16日 14:04

すべての返信

  • .As for .NET 4.7.1 is the latesr version,this being .NET is enabled in Win components/Add-Remove..

    For Azure & PowerShell,follow the link.

    http://www.msn.com/?pc=EUPP_

    2018年4月20日 1:09
  • Hi,

    From your description, you have met the requirement to install the Powershell v5.

    Go to Control Panel to check for windows update, make sure your system is up to date.

    Then it is suggested that you can uninstall the antivirus software or other suspicious 3-party software. 

    You can also run sfc /scannow in cmd as administrator to scan for corrupted system components.

    You can also try these methods:

    1. Run CHKSUR tool

    https://www.microsoft.com/en-sg/download/details.aspx?id=20858

    2.Reset windows update components:

      https://support.microsoft.com/en-us/help/971058/how-do-i-reset-windows-update-components

    To do further research, please help us collect the cbs.log (g%SYSTEMROOT%\Logs\CBS\CBS.lo) , windowsupdate.log (%windir%\windowsupdate.log) , CheckSUR.log (%SYSTEMROOT%\Logs\CBS\CheckSUR.log), post them onto OneDrive and share the link here,


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2018年4月20日 2:32
  • 2018年4月20日 20:05
  • Ok, you can also follow the link to reset the windows update components:

    https://community.spiceworks.com/how_to/135720-manually-reset-windows-update-components

    Note: this is a 3rd party link, we don't have any warranties on this website. It's just for your convenience.


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2018年4月23日 8:09
  • Any update?

    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    2018年4月24日 6:18
  • No solution yet. 

    When I run Web Platform Installer 5.0 and selected "Microsoft Azure SDK for .NET (VS 2015) - 3.0.1 it stops on 2 of 18 and is looking for webtoolsextensionsvs14.msi in this location; C:\ProgramData\Package Cache\{F7BBF232-D4A1-3C5C-B131-69933F5F2D6B}v14.1.11106.0\packages\WPT\ but the folder is empty.

    When I search my local drive for webtoolsextensionsvs14.msi, it finds one in C:\ProgramData\Package Cache\{603DCF17-E958-3A31-AFED-919086709DB6}v14.1.11107.0\packages\WPT\.   If I specify that location, to Web Platform Installer, it errors with "..is not a valid installation package for the product Microsoft ASP.NET and Web Tools 2015.1 (Beta8) - Visual Studio 2015..."

    Also found, WebToolsExtensionsVS14_74.msi.  Gives same error.

    I tried uninstalling both of them with no luck using >msiexec /x webtoolextensionsvs14.msi

    That results in a message saying "This action is only valid for products that are currently installed."

    2018年4月26日 16:58
  • Hi,

    It is suggested that you can use System Update Readiness Tool to scan the integrity of your system components. From the error, seems that the required packages are missing or corrupted.

    After using the tool, a log will be generated under %SYSTEMROOT%\Logs\CBS\CheckSUR.log. You can replace them manually. However, if too much packages missing, it is suggested that you can do an in-place upgrade to fix the integrity of the components.

    How to perform an in-place upgrade:

    https://support.microsoft.com/en-us/help/2255099/how-to-perform-an-in-place-upgrade-on-windows-vista-windows-7-windows


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.


    2018年4月27日 8:57
  • My Solution...

    Great suggestions and I tried pretty much everything offered.  I kept running into errors with any Powershell related upgrade or .Net 4.7 or VS 2017.  I found several other people with the same issue.  I bit the bullet and started with a fresh install Windows 7 64 bit.  I was then able to install VS 2017 with Azure and Web Dev options selected with no error.  I was also able to install the Powershell upgrades.  Starting with Powershell 2, In ran Win7AndW2K8R2-KB3134760-x64 followed by Win7AndW2K8R2-KB3191566-x64 with no issue.  Now I have Powershell 5.1

    2018年5月16日 14:04