I would like to adjust the PowerShell Execution Policy for a service account, i.e. the IIS user (or let alone those new SSIS virtual accounts). However, it looks like you can only adjust the policy system-wide like so
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
or for the current user like so
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Do I look at the wrong place, can this be found in the Registry, or is it a Group Policy?
What's the correct way to do this?
Best Answer
As defined in the help files.
However, enforced Domain-wide GPO's that include ExecutionPolicy settings, will take precedence over anything you set.