SyntaxFix
Write A Post
Hire A Developer
Questions
I found this line worked best for one of my Windows Server 2008 R2 servers. A couple of others had no issues without this line in my PowerShell scripts:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force -Scope Process