PowerShell error "running scripts is disabled on this system"
Invoke-DatabaseBuildI get an error of:
So then I run
Import-Modul SqlChangeAutomation and get the error of:
My PS execution policy is Restricted. Here is the confusing part:
- This older 2019 documentation says I have to update my PS execution policy to Unrestricted (I assume RemoteSigned would work, too).
- But the release notes from version 4.2.20177 (June 2020) says the scripts should run under Restricted mode.