Why is my locally-created script not allowed to run under the RemoteSigned execution policy?

Some things to check: Can you change to unrestricted? Set-ExecutionPolicy Unrestricted Is the group policy set? Computer Configuration\Administrative Templates\Windows Components\Windows PowerShell User Configuration\Administrative Templates\Windows Components\Windows PowerShell Also, how are you calling Script.ps1? Does this allow it to run? powershell.exe -executionpolicy bypass -file .\Script.ps1

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)