Du betrachtest gerade Windows 7 PowerShell 5.1 installieren
Windows 7 PowerShell 5.1 © MoSi

Windows 7 PowerShell 5.1 installieren

Unter einem neu installiertem Windows 7 mit SP1 soll PowerShell 5.1 installiert werden:

Windows 7 Updateerror korr. © MoSi
get-hotfix | Sort-Object HotfixID | Where-Object {$_.HotfixID -like "*"} | FT HotFixID, Description -AutoSize
PS C:\admin\!PS1> get-hotfix | Sort-Object HotfixID | Where-Object {$_.HotfixID -like "*"} | FT HotFixID, Description -A
utoSize

HotFixID  Description
--------  -----------
KB2574819 Update
KB3138612 Update
KB976902  Update
KB976932  Service Pack

Es müssen dazu in der exakten Reihenfolge das .net-4.5.2, .net-5.0 und Windows Management Framework 5.1 installiert werden.
In folgender Reihenfolge sind obige Windows-Updates einzuspielen:

  1. [1] Windows 7 -kb2901907-x64 .NET Framework 4.5.2 (Offlineinstaller)
  2. [2] Windows 7 -kb3063858-x64 .NET Framework 5.0.7
  3. [3] Windows 7 -kb3191566-x64 Windows Management Framework 5.1

Siehe auch:
https://docs.microsoft.com/en-us/powershell/scripting/windows-powershell/install/windows-powershell-system-requirements?view=powershell-7.1

Kontrolle der PowerShell Version nach dem Neustart mit:

Windows 7 PowerShell 5.1 © MoSi
get-host
PS C:\admin\!Ps1> get-host


Name             : ConsoleHost
Version          : 5.1.14409.1005
InstanceId       : dde78d47-de3a-4f75-9eeb-405afbf27ffc
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : de-AT
CurrentUICulture : de-DE
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Kontrolle der Updates nach obigen Neustart mit:

Windows 7 PowerShell 5.1 © MoSi
get-hotfix | Sort-Object HotfixID | Where-Object {$_.HotfixID -like "*"} | FT HotFixID, Description -Autosize
PS C:\admin\!Ps1> get-hotfix | Sort-Object HotfixID | Where-Object {$_.HotfixID -like "*"} | FT HotFixID, Description -A
utoSize

HotFixID  Description
--------  -----------
KB2574819 Update
KB2809215 Update
KB2872035 Hotfix
KB3033929 Security Update
KB3063858 Security Update
KB3138612 Update
KB3191566 Update
KB976902  Update
KB976932  Service Pack