N
N
Nordman992019-12-07 14:17:10
PowerShell
Nordman99, 2019-12-07 14:17:10

How to update Powershell in Windows 7?

I welcome everyone! The situation is as follows: there is Windows 7 SP1 x64 Ultimate
I wanted to update the powershell 2.0 available in this axis by default to one of the latest - 5.0 or 5.1 (
Although there are already like 6.0 and 7.0, but in this case this is not about that)
site instructions for this operation
https://docs.microsoft.com/ru-ru/powershell/script...


Install the Universal C Runtime on versions of Windows earlier than Windows 10. You can download it yourself or through Windows Update. Supported systems with all fixes installed (including optional packages) already contain it.
Install Windows Management Framework (WMF) 4.0 or later on Windows 7 and Windows Server 2008 R2. For detailed information about WMF, see the WMF overview article.

C runtime - https://www.microsoft.com/download/details.aspx?id...
WMF - https://docs.microsoft.com/en-us/powershell/script...
https:// docs.microsoft.com/ru-ru/powershell/script...
- In general, I downloaded the C runtime, installed without problems
- downloaded WMF 4.0, go to the folder - there is the update package itself and the script for installing it - Install-WMFxx.ps1
I open powershell, I enable the launch of signed scripts - set-executionpolicy remotesigned I
launch the script for installing Install-WMFxx.ps1, I go through the standard steps for installing the update - I accept the EULA, etc. installation is in progress and as a result it is issued -

The following updates are not installed:
Update for Windows (KB3191566)

Same with WMF 5.0 and WMF 5.1, why can't install? It seems that I am doing everything correctly according to the instructions, how can I find out the reason why this package does not want to be installed?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azarij, 2019-12-07
@Nordman99

you need to decide which powershell you need.
The familiar powershell ended with version 5.1.
further (6.x+) went powershell core ( difference ).
to install regular, not core, powershell 5.1 just run the .ps1 file by unpacking the archive Win7AndW2K8R2-KB3191566-x64.ZIP from here https://docs.microsoft.com/en-us/powershell/script... will take some time and ask you to reboot.
on the forums, most often problems with installing this particular update are solved by reinstalling the OS. =(
P.S. you can still try to update the .NET Framework

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question