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,230 points
1,441 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,440 points

Related Questions In Others

0 votes
0 answers

The page cannot be displayed because an internal server error has occurred on server

When  I've deployed the website I installed  ...READ MORE

May 23, 2022 in Others by Kichu
• 19,050 points
876 views
–1 vote
0 answers
0 votes
1 answer

PHPExcel file cannot open file because the file format or file extension is not valid

Just change the code to this: // Save Excel ...READ MORE

answered Nov 24, 2022 in Others by narikkadan
• 63,420 points
4,537 views
0 votes
1 answer

Excel cannot open the file because the file format or file extension is not valid - PHP Maatwebsite

Try this: if (ob_get_length() == 0 ) { ...READ MORE

answered Dec 19, 2022 in Others by narikkadan
• 63,420 points
985 views
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,440 points
1,671 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,700 points
6,983 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,440 points
1,504 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,440 points
1,083 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP