The file is not digitally signed PowerShell script

In this PowerShell tutorial, we will discuss how to fix the file is not digitally signed PowerShell script error.

You can follow the solution to fix error cannot be loaded. the file is not digitally signed PowerShell.

Recently, I was trying to execute a PowerShell script using Windows PowerShell ISE.

But I got an error as cannot be loaded. the file is not digitally signed PowerShell.

the file is not digitally signed windows 10 powershell
The file is not digitally signed PowerShell script

the file is not digitally signed powershell script

I was getting the error in Windows 10 laptop.

You will receive this error when you will run a PowerShell script that is not signed with a trusted publisher.

In the system, there will be a execution policy, By default, the PowerShell execution policy is set to Allsigned.

You can see the PowerShell execution policy by executing the below command.

Get-ExecutionPolicy
powershell error the file is not digitally signed
The file is not digitally signed PowerShell script

To fix error, you need to run the below PowerShell command.

Set-ExecutionPolicy unrestricted

Once you execute the command, it will ask you to confirm, click on Y like below:

Cannot execute PowerShell script not digitally signed
powershell not digitally signed

Once you execute the above command, now you will be able to execute the PowerShell script.

Import-module cannot be loaded because running scripts is disabled on this system

Sometimes you may get the error like below:

Import-Module : File C:\Program Files\WindowsPowerShell\Modules\Az.Accounts\1.9.0\Az.Accounts.psm1 cannot be loaded because running scripts is disabled on
this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.

The error looks like below:

Import module cannot be loaded because running scripts is disabled on this system
Import module cannot be loaded because running scripts is disabled on this system

To fix cannot be loaded because running scripts is disabled on this system. for more information error, run the below command:

Set-ExecutionPolicy unrestricted

You may like the following PowerShell tutorials:

I hope this tutorial helps to fix the error the file is not digitally signed powershell script. Also, how to fix error cannot be loaded because running scripts is disabled on this system. for more information in import-module in PowerShell.

  • powershell script is not digitally signed
  • file cannot be loaded is not digitally signed
  • powershell not digitally signed
  • powershell script not digitally signed error
  • powershell the file is not digitally signed
>