none
Using the Set-ExecutionPolicy Unrestricted by Powershell RRS feed

  • Question

  • Hi,

    I just wanna know if it is possible to enable Powershell Scripts, by an Powershell Script? 

    If i type in Powershell this "Set-ExecutionPolicy Unrestricted" a new Confirmation pops up and i can Valide this with "Y" but is it possible that to make a Powershell Script so that it Validate automatically?

    Thank You Very Much :)

    Wednesday, June 10, 2015 8:50 AM

Answers

  • To avoid confirmation prompt you can type Set-ExecutionPolicy Unrestricted -Force.

    Execution Policy can also be set using Group Policy.

    • Marked as answer by LeeHong1 Wednesday, June 10, 2015 9:45 AM
    Wednesday, June 10, 2015 9:03 AM

All replies