"File Cannot Be Loaded Because Running Scripts Is Disabled on This System In Windows Powershell FIX."
This is observed in latest update in permissions by windows all we need to do is search for Powershell in windows start and run as administartor and runn the followiing commands which is given below.
If you are running into an error saying that your script "cannot be loaded because running scripts is disabled on this system" while trying to run a script in Powershell, on Windows 10, you have to change the execution policies first.
Commands to be entered in power shell:
1)Get-ExecutionPolicy -List
2)Set-ExecutionPolicy Unrestricted
3)Set-ExecutionPolicy Unrestricted -Force
Note:- u will be prompted to give Y/N after giving the 2nd command,so give as 'Y' and click on enter button
If PowerShell throws up an error message – File cannot be loaded because running scripts is disabled on this system, then you need to enable script running on your Windows 10 computer. The cause of this error comes to the fact that your user account does not have enough permissions to execute that script. This does not mean that you need to have an Administrator level permissions, it also means that you also need to be unrestricted to run these type of PowerShell scripts or cmdlets