Running:
Import-Module PowerShellGet
Gives the following error:
The file was skipped because of the following validation exception: File C:\program files\powershell\7\Modules\PackageManagement\PackageManagement.format.ps1xml cannot be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy..
Running:
Get-ExecutionPolicy -List
will display LocalMachine as RemoteSigned
Any suggestions to get the code to run with correct execution policy?