====== PowerShell 7 auf Systemen installieren oder aktualisieren ======
Die Installation kann entweder über das Herunterladen des entsprechenden Installationsprogramms, Chocolatey oder einen unmittelbaren Aufruf in der PowerShell selbst erfolgen.
===== Abruf des Installationsprogramms =====
Der Installer ist auf der Microsoft-Homepage zu finden:\\
[[https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2|PowerShell - Installation]]
===== Installation über chocolatey =====
choco install PowerShell-core -y
===== Installation aus der PowerShell selbst =====
Der folgende PowerShell-Befehl lädt die aktuelle Installationsdatei der PowerShell herunter und beginnt die Installation:
Invoke-Expression "& { $(Invoke-RestMethod https://aka.ms/install-powershell.ps1) } -UseMSI"