PowerShell execution policy process level

This topic contains 2 replies, has 2 voices, and was last updated by  sirirako 2 years, 8 months ago.

  • Author
  • #32027


    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

    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


    Thank you Dave. We will try.

You must be logged in to reply to this topic.