ZakiTNT
Posts: 7
Joined: Wed Nov 16, 2022 3:10 am

Error 4106: An error was encountered while creating a scheduled task

Hi, one of my application user (MyApp) encountered an error with the task scheduler job.

The scenario is they push MyApp to their client pc with Kaseya. When the client login into his pc, an error will be prompted. The error message is:
User: NT AUTHORITY\SYSTEM
Description: MyApp - Error 4106. An error was encountered while creating a scheduled task: 'MyAppUpdate.job'.
Error Description: No mapping between account names and security IDs was done.
Currently, there are 2 test user who are facing this problem.

Advanced Installer version: 15.3
MyApp task scheduler setting :
-set to run in silent mode
-task is set to run with [%UserDomain]\[LogonUser] (run only if user is logon)

Normal MyApp installation doesn't have this problem.

Thank you.
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Error 4106: An error was encountered while creating a scheduled task

Hello,

For more information about this, please have a look over the following FAQ:

Why the installation fails with the "No mapping between account names and security IDs was done" error?

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ZakiTNT
Posts: 7
Joined: Wed Nov 16, 2022 3:10 am

Re: Error 4106: An error was encountered while creating a scheduled task

Hi Catalin,

Thank you for your reply.

When I try the suggested method, the task scheduler will run the updater application as a system process. The task scheduler will show the result as "the task is currently running (0x41301)". Unfortunately, no UI will be shown. This is for standard installation ( previously, with [%UserDomain]\[LogonUser], the task scheduler process will run fine)

Currently, the only way to "fix" this is by changing the execution method to manual (add a shortcut). User reported no issue arise while using this "fix".
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: Error 4106: An error was encountered while creating a scheduled task

Hello,

Thank you for your followup on this and for sharing your solution with us!

Glad you managed to get this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”