• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

POWERSHELL HELL - trying to get unrestricted mode

inachu

Platinum Member
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.
 
Try the programming forum, and say what OS you're running.

Does your script open other scripts? Maybe try Set-ExecutionPolicy Bypass.
 
Last edited:
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.
 
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.
 
Back
Top