Execution Policy
What it is
Execution policy is a safety gate for scripts—not a full security boundary. It mainly reduces accidental runs of downloaded scripts.
Check the policy
Scopes stack; the effective policy is what matters day to day.
Get-ExecutionPolicy -List
Common learning approach
On a personal learning machine, many people set the CurrentUser scope to RemoteSigned.
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
Bypass carefully
You can bypass for one process when needed, but prefer fixing the policy or unblocking trusted files intentionally.
powershell -ExecutionPolicy Bypass -File .\hello.ps1
Comments
One comment per signed-in account. Comments are saved with this page’s URL.