Comments
3 comments
-
I tried to post this as a "Question" but it kept saving in Drafts and when I edited the draft it would only let me submit it as a "Discussion". Sorry. -
Hey @AdamY ,
The execution policy will need to be set to at least 'RemoteSigned' in order to import and run our scripts.
Restricted doesn't allow the execution of any scripts, so it is likely an error in our release notes. I'm really sorry about that!
I hope this works for you, but feel free to reply to this thread if there's still a problem, and I'll try my best to help resolve it.
Many thanks,
Dan -
Thanks, @danielpottenger. I bet the release notes were supposed to say "RemoteSigned", not "Restricted". I'll give it a shot and reply if it still is not working.danielpottenger said:The execution policy will need to be set to at least 'RemoteSigned' in order to import and run our scripts.
Restricted doesn't allow the execution of any scripts, so it is likely an error in our release notes.
Add comment
Please sign in to leave a comment.
When running
Invoke-DatabaseBuildI get an error of:So then I run
Import-Modul SqlChangeAutomationand 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.
Assuming the 4.2.20177 notes are correct, then I'm not sure what to do. I haven't found anything on "The Google" that helps. Is this a bug - so I should contact support?