POWERSHELL HELL - trying to get unrestricted mode

inachu

Platinum Member
Aug 22, 2014
2,387
2
41
So I right click power shell and choose run as admin
then I run:
set-executionpolicy unrestricted then hit y

Then I run a script and i get red text barfing back at me as if I am not in unrestricted mode.


Had anyone come across this and has a fix?


To tell the truth I did this before about 6 months ago and did not have any problems and I felt rusty going back in to learn more but almost feels pointless.
 

Binky

Diamond Member
Oct 9, 1999
4,046
4
81
Try the programming forum, and say what OS you're running.

Does your script open other scripts? Maybe try Set-ExecutionPolicy Bypass.
 
Last edited:

mvbighead

Diamond Member
Apr 20, 2009
3,793
1
81
I suspect you may have security on the PS1 script you are trying to run? If you retrieved from a remote source, this is a possibility.

You could try to copy paste the script into a new file that you create locally. Or, right-click the file and select properties. If there is a check box for 'block blah blah' that is checked, un-check it.

Also, run get-executionpolicy as already suggested to confirm that you did get into unrestrictedmode.
 

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
Hrm, if you consider this Powershell Hell... I don't know what to tell you. You may also have a policy that prevents unrestricted. Powershell is epically powerful and is by far my most favorite MS tool.