Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Reply To: Powershell Ruan As Administrator

$
0
0

Hello!

I prefer to answer here so that everyone can see the answers :)

Try to open the powershell console and use the "Set-ExecutionPolicy" cmdlet inside of the console instead of inside the script file, like this:

Set-ExecutionPolicy 'Unrestricted'

You can't change the execution policy inside of a script, you need to do it from the console or by the help of a GPO.

Best Regards Alexander


Viewing all articles
Browse latest Browse all 13067

Trending Articles