Why execution policy matters
Execution policy helps reduce accidental script execution. It is not a full security boundary, but it is a useful safety control.
Check the current policy
Get-ExecutionPolicy -List
Typical safe setup for admins
Set current user policy to RemoteSigned:
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
Verify the change
Get-ExecutionPolicy -List