Users experienced scripts not executing on Windows Server 2022 but works on earlier servers. Possible problems were discussed, such as GPO settings, the account the script is running under, and if a signature was needed. It was suggested that a signed script may need to be imported, and if the issue persists to reach out to ControlUp support at support@controlup.com.
Read the entire ‘Troubleshooting Script Execution Issues on Windows Server 2022’ thread below:
Hi all,
today we faced on a windows server 2022 which we are using for our Citrix users that the scripts can not perform their actions:
We guess that it are GPO´s from above that keeps us prevent executing them. Does s.o. ever experienced that, too?
BTW: On 2012; 2016 & 2019 server we never faced that before.
You just need to set the execution policy from signed to bypass or unrestricted
You can do this on the profile you’re running as or a gpo to globally set it
GPO overrides your profile though.
Only if the GPO is set to set it to signed
If there’s no gpo already in place you’ll be ok 🙂
OK. And I guess there ist the problem that is something else
The account that has that execution policy, is the script running under that profile on that machine?
yes
That’s interesting
did you try to sign the script?
Because the error message is the same if the signature is wrong
If execution policy is unrestricted doesn’t it just ignore signatures? :thinking_face:
We cannot sign it because it is a ControlUp internal script
You can still, you just have to add the certificate at the bottom of the script in script actions
So just sign it then re-import the script
We will try that tomorrow. Thanks so far
Will keep you posted.
If you still need help, can you shoot an email to support@controlup.com and reference me in it, we can hop on a call and do some diagnosing… I love digging into this kinda stuff 🙂
Continue reading and comment on the thread ‘Troubleshooting Script Execution Issues on Windows Server 2022 with ControlUp’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers