Fill these in once
This is a Windows PowerShell message. On macOS, see Run a script you downloaded.
This is a Windows PowerShell message. On Linux, see Run a script you downloaded.
- See the current settings
Get-ExecutionPolicy -List - Allow your own and signed scripts
Set-ExecutionPolicy -Scope CurrentUser RemoteSignedType Y if asked. This only affects your user, not the whole PC.
- Unblock a script you downloaded
Unblock-File .\setup.ps1
Check it worked
- Check the new setting
Get-ExecutionPolicy -Scope CurrentUserYou should see RemoteSigned.
Undo it
- Go back to the default
Set-ExecutionPolicy -Scope CurrentUser Undefined