When you attempt to run a PowerShell script you get the following response. “Script cannot be loaded because running scripts is disabled on this system”.
To allow execution of scripts type the following in PowerShell:
Or if you just want to allow the script to run this one time to test it then type the following in PowerShell:
powershell -ExecutionPolicy ByPass -File yourscript.ps1