TOEC crashes on login policy with impersonation
-
Hi! I am trying to setup a policy to run on login, containing a command module. This command module is set to run as admin and when looking at the logs the last message in tray.log is:
DEBUG [1] ServiceImpersonationTask - Starting Impersonation Task
And in the event viewer I can see that TOEC clients crashes with a .Net Runtime error with ID 1026 (The process was terminated due to an unhandled exception.)
I can run this module using the instant module runner just fine. Is this a limitation of running the module on login with impersonation?
I have tried running it on setupcomplete or startup and no errors, but this particular command requires an elevated account when a regular user is already logged on (it's an user license key instalation for one app).Thank you in advance!
-
Impersonation only works when running as a service, won't work at login since it runs under that users context.