Upgrading Powershell
Unlike Windows PowerShell 5.1 (which defaults to Restricted ), PowerShell 7 defaults to RemoteSigned —but you still need to set it for the CurrentUser scope:
You must restart pwsh for this to take effect. upgrading powershell
Many old modules written for 5.1 still work in 7, but need a shim: Unlike Windows PowerShell 5
This is the easiest method if you are on Windows 10 or 11. Winget is built into modern versions of Windows. upgrading powershell