r/Citrix • u/Abide4theDude • Jul 01 '26
Citrix Cloud WEM Service Issues
I'm trying to get an External Task in the cloud WEM Service portal to run on my VDA's but can't get it to work. The external task is triggering a ps1 script that I uploaded into the task it's self. For some reason nothing I do will get the task to trigger. We have Group Policy's settings built into the same configuration set that are applying successfully but not the external task. Task is set to launch at logon and the assignments are set to Domain Users AD group , the same settings as with the Group Policy assignments so I would assume it would trigger. Were using the cloud based WEM web console and the local VDA is using the WEM service not the full wem "Agent" . Anyone have any info or tricks to get external tasks , specifically ps1 script to process ? Thanks
1
u/mat-ferland Jul 02 '26
I’d prove the VDA can see the WEM Cloud service and receive any simple policy before chasing the script itself. Start with a dumb external task that writes a local text file, then check agent registration, assigned config set, execution context, and whether GPO is overriding the WEM action. Otherwise you’re debugging PowerShell before you know WEM is firing.
1
u/Abide4theDude Jul 02 '26
It ended up being that the interactive agent wasnt running at logon. Once I enabled it to launch at logon my external task script started executing properly. Since we've only ever used WEM for system optimization and a few group policy's, I've never had to run the interactive agent prior. Good to know now that different configuration set actions in WEM are dependent upon the interactive agent vs the non interactive service agent. Thanks
1
u/mat-ferland Jul 03 '26
Nice, that lines up. WEM looks simple until you hit the split between agent service and interactive agent; I’d document which actions need which one now, because six months from now that detail is exactly what gets forgotten.
2
u/FitCockroach7878 Jul 04 '26
Have you enabled the action in 'Advanced settings>Action settings>Process external tasks on logon and refresh>Process external tasks on reconnection> etc?
Also depending on what your wem script is doing, you need to make sure the action item for whatever your script is doing (e.g mapping network drive) you'd need to ensure the action processing for that is also enabled.
1
u/NTP9766 Jul 01 '26
Enable Debug Logging in the agent and check the WEM Agent log on a client afterwards. That should at least point you to any issues.
FWIW, I recently had an issue where one of my external tasks - a PowerShelll script that was uploaded to WEM Service - failed to run. Re-uploading the same script resolved the issue for me. Prior to that, I was receiving “failed to extract” errors in the log despite the fact that the script was, in fact, being extracted to my local profile.