≡ Menu




File cannot be loaded because the execution of scripts is disabled on this system error in PowerShell

 

While installing ESB portal on 64 bit machine I found following errors

 

File Management_Install.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:2

The reason for this error is the security setting on your pc that does not allow you to execute a script.  This is the so-called Execution Policy. By default, the Execution Policy is set to Restricted. This setting means that you may not run any PS1 script at all.

An overview of the policy levels: Set-ExecutionPolicy Unrestricted

But result is same, then its comes in my mind that machine is  64 bit.

I create a new file with cmd as follow and run it with administers.

%SystemRoot%syswow64WindowsPowerShellv1.0powershell.exe Set-ExecutionPolicy Unrestricted

 

For 32 bit machine at cmd write powershell and enter then just unrestricted policy level  

Set-ExecutionPolicy Unrestricted

for 64 bit machine  use following string at cmd open with administrator rights.

 

%SystemRoot%syswow64WindowsPowerShellv1.0powershell.exe Set-ExecutionPolicy Unrestricted

 

This will solve my problem.

Comments on this entry are closed.