checks for issues in core tools we use and attempts to fix them
set-executionpolicy remotesigned then Y when it asks how to change it.
press y and enter. It is actually asking if you agree to the souce agreement terms. if you want to actually see the original prompt open a powershell window and do winget list instead.
- Win10 Pro
- Set-ExecutionPolicy Unrestricted
- Win11 Pro
- Set-ExecutionPolicy -Scope CurrentUser Unrestricted
From (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_signing?view=powershell-7.4): To run an unsigned script, use the Unblock-File cmdlet or use the following procedure.
- Save the script file on your computer.
- Click Start, click My Computer, and locate the saved script file.
- Right-click the script file, and then click Properties.
- Click Unblock.