Powershell run error FullyQualifiedErrorId : RuntimeException

Asked By 240 points N/A Posted on -
qa-featured

I am new to PowerShell and have been given a script to run it. I tried running and get this message. Is it a version issue I have V1.0 and running it on windows 2008 Operating system.

Administrator: Windows PowerShell Modules

PS D:> .runthis.ps1
File D:runthis.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At line:1 char:14
+ .runthis.ps1 <<<<
    + CategoryInfo          : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException

PS D:> _

Can anyone help me please ?

SHARE
Best Answer by Karlo
Best Answer
Best Answer
Answered By 240 points N/A #104048

Powershell run error FullyQualifiedErrorId : RuntimeException

qa-featured

Hi Mate,

I came here to this site to ask a question but just saw this question and decided let me take a min to answer it. Ok do this:

The marked in red is the only action you need to do.

Just paste this in the PowerShell console "Set-ExecutionPolicy RemoteSigned" and click Enter.

PS C:> Set-ExecutionPolicy RemoteSigned

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic. Do you want to change the execution
policy?
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Set-ExecutionPolicy RemoteSigned
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y

You are all set to go. Thanks bye.

Answered By 240 points N/A #104049

Powershell run error FullyQualifiedErrorId : RuntimeException

qa-featured

Thanks a lot Karlo, for the timely help which was very useful.

Login/Register to Answer

Related Questions