This error will show up when you go to run a powershell script in your PowerShell ISE or on the PowerShell terminal.
If you get an error similar to this:
File C:\Users\jake\Documents\test.ps1 cannot be loaded because running scripts is
disabled on this system. For more information, see about_Execution_Policies at
http://go.microsoft.com/fwlink/?LinkID=135170.
+ CategoryInfo : SecurityError: (:) [], ParentContainsErrorRecordExcept
ion
+ FullyQualifiedErrorId : UnauthorizedAccess
To fix this powershell error you need to activate powershell scripts on your system.
Run the powershell terminal as administrator by right clicking on the powershell terminal shortcut and selecting run as administrator.
Then run the following command:
-
set-executionpolicy remotesigned
- Then type “Y” for yes and press enter
Now you will be able to run PowerShell scripts in both your PowerShell ISE and in the PowerShell Terminal.
Now the message that running scripts is disabled on this system will not appear anymore.
Do you know what a cmdlet is? If not read this post entitled what is a cmdlet.
Related Posts: