Installing PowerShell 7
PowerShell 7 is not installed in Windows by default, at least not at the time of writing. The PowerShell team has made PowerShell 7.1 available from the Microsoft Store, which is useful to install PowerShell 7.1 or later on Windows 10 systems. As the Microsoft Store is not overly relevant to Windows Server installations, you can install PowerShell by using a script, Install-PowerShell.ps1
, which you download from the internet, as shown in this recipe. You can also use this recipe on Windows 10 hosts.
Getting ready
This recipe uses SRV1
, a Windows Server workgroup host. There are no features of applications loaded on this server (yet).
How to do it...
- Setting an execution policy for Windows PowerShell (in a new Windows PowerShell console)
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Force
- Installing the latest versions ofÂ
NuGet
 andÂPowerShellGet
Install-PackageProvider...