security
Get-ExecutionPolicy
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Execution policy
Execution policy is not a security boundary It stops accidental execution of scripts A user who can run PowerShell can bypass it Do not confuse policy with protection
Signing
Signed scripts prove origin Unsigned scripts from the internet prompt before running Signing is useful in managed environments, overhead in a lab
Constrained language mode
Constrained language mode limits what a script can do It is a real control when combined with application control It is not a substitute for patching
Logging
PowerShell logging captures commands and output That is the audit trail Enable it on systems where commands matter
End
The docs describe a modern shell The security story is mostly about what runs, not what the shell is
Posted