PowerShell execution policy process level

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of sirirako sirirako 11 months, 1 week ago.

  • Author
  • #32027
    Profile photo of sirirako

    Is there a way to change the execution policy for process level.

    If we run get-executionpolicy -list , it shows the process level is undefined. We have issue running build in TFS.

    Thank you!

  • #32028
    Profile photo of Dave Wyatt
    Dave Wyatt

    Yep. Process level is set if you start PowerShell.exe with the -ExecutionPolicy parameter, or if you run Set-ExecutionPolicy -Scope Process from inside your session.

    However, if the Process scope is undefined, then it's just going to inherit some other value, which is typically not a big deal. Running Get-ExecutionPolicy without the -List switch will show you the policy that's currently in effect, regardless of where it was inherited from.

  • #32029
    Profile photo of sirirako

    Thank you Dave. We will try.

You must be logged in to reply to this topic.