Whenever I run a powershell script, I get the error:
Set-ExecutionPolicy : Windows PowerShell updated your execution policy successfully, but the setting
is overridden by
a policy defined at a more specific scope. Due to the override, your shell will retain its current effective
execution policy of Unrestricted. Type "Get-ExecutionPolicy -List" to view your execution policy settings. For more
information please see "Get-Help Set-ExecutionPolicy".
This doesn't happen when I run scripts in Powershell ISE or run commands on the command-line. Is there anyway to stop this from happening?