Running scripts is disabled
Published 31 July 2019
The following error text appears when running a SQL Change Automation cmdlet or add-on:
Error message Toggle source code
- ...running scripts in disable on this system...
Cause
The current execution policy doesn't let you run the current script.
Fix
To run scripts, change the security policy using PowerShell ISE:
- Open PowerShell ISE as an administrator:
- From the Start menu, type PowerShell ISE
- Right-click Windows PowerShell ISE and click Run as administrator
- Run the following PowerShell code:
- Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Click here for more information on execution policies.