SQL Change Automation 4

Running scripts is disabled

The following error text appears when running a SQL Change Automation cmdlet or add-on:

Error message

...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:

  1. Open PowerShell ISE as an administrator:
    1. From the Start menu, type PowerShell ISE
    2. Right-click Windows PowerShell ISE and click Run as administrator
  2. Run the following PowerShell code:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Click here for more information on execution policies.


Didn't find what you were looking for?