script1 ps1 cannot be loaded because running scripts is disabled on this system

0 votes

Hi Guys,

I am trying to run one script from PowerShell. But it is showing me the below error.

script1.ps1 cannot be loaded because running scripts is disabled on this system.

How can I solve this error? 

Sep 8, 2020 in Others by akhtar
• 38,170 points
214 views

1 answer to this question.

0 votes

Hi@akhtar,

This error happens due to a security policy that won't let scripts be executed on your system without you having approved of it. You can do so by opening up a PowerShell window with administrative rights (search for PowerShell in the main menu and select Run as administrator from the context menu) and run the below command.

set-executionpolicy remotesigned
answered Sep 8, 2020 by MD
• 95,180 points

Related Questions In Others

0 votes
0 answers
0 votes
1 answer

why linux is more secure than any other operating system?

First thing i would like to tell ...READ MORE

answered Jul 11, 2018 in Others by kristena1234
• 160 points
1,037 views
0 votes
1 answer
0 votes
1 answer

ERROR: You need elevated Administrator privileges in order to run this script.

Hi@akhtar, I guess you are trying to run ...READ MORE

answered Sep 8, 2020 in Others by MD
• 95,180 points
123 views
0 votes
1 answer

How to restart docker for windows using Powershell?

Try this: $processes = Get-Process "*docker for windows*" if ...READ MORE

answered Oct 23, 2018 in DevOps & Agile by Tyrion anex
• 8,660 points
2,681 views
+1 vote
1 answer
0 votes
1 answer

how to install Amazon AWS Command Line Interface tools on Bamboo build agent.

Hi@Abhishek, You need to set the following parameters ...READ MORE

answered Apr 6, 2020 in Others by MD
• 95,180 points
370 views
0 votes
1 answer

What is Flutter?

Hi@akhtar, Flutter is an app SDK for building ...READ MORE

answered Jul 17, 2020 in Others by MD
• 95,180 points
253 views