Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Risks/Best practices on execution policy

$
0
0
While it would be easy to set the execution policy to unrestricted, or possibly set it to unrestricted in an agent job, do the work, then set back to restricted, I'm wondering what the best practices are.Restricted - No scripts can be run. Windows PowerShell can be used only in interactive mode.AllSigned - Only scripts signed by a trusted publisher can be run.RemoteSigned - Downloaded scripts must be signed by a trusted publisher before they can be run.Unrestricted - No restrictions; all scripts can be run.

Viewing all articles
Browse latest Browse all 467

Trending Articles