Page 1 of 1

PrimalScript PowerShell Execution Policy

Posted: Tue Feb 07, 2017 12:19 pm
by robwm1
Product, version and build: 7.3.98.0
(*** Please do not write "latest" as a version, specify a version number ***)
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 Enterprise
32 or 64 bit OS: 64-bit

Hi,

I am trying to run a PowerShell script from the PrimalScript environment. Our network policy is RemoteSigned. When I try to execute the script, I am blocked by a message that says: "Your 32-bit or your 64-bit PowerShell Execution Policy will prevent your script from running properly. Would you like to change your settings now?"

When I click Yes, nothing happens. I went into Options > Script Security and changed the Security Setting to RemoteSigned but I still cannot run my script.How do I configure PrimalScript so I can execute PowerShell scripts while in the environment? I recall that clicking Yes used to bring up another window where you could change the settings but that isn't happening with this version. I can't seem to find it anywhere in Options either.

Thank you!
Rob Moorhead

Re: PrimalScript PowerShell Execution Policy

Posted: Tue Feb 07, 2017 12:24 pm
by DevinL
We recently discovered the cause of this bug and have a fix ready for the next service release of PrimalScript.

In the meantime, please try executing Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine and see if that grants you the correct permissions.

Re: PrimalScript PowerShell Execution Policy

Posted: Tue Feb 07, 2017 12:45 pm
by robwm1
Hi Devin,

It looks like the command line that you gave is working. Thanks a lot for the quick response! I was blocked on a critical project.


-Rob

Re: PrimalScript PowerShell Execution Policy

Posted: Tue Feb 07, 2017 12:56 pm
by DevinL
Not a problem, in critical situations such as this we do our best to get back as soon as possible. Keep an eye out for the next update which will include a fix to resolve this issue should it ever pop up again.

And lastly, if you have any other issues please don't hesitate to post again :)