How to create task with group managed service account (gMSA) account? #996
Replies: 1 comment 1 reply
-
Do not set forceV1 = true; that pushes it back to WinXP settings. Let me know if that fixes things. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I've just started converting to a .NET 8.0 MVC web application from a .NET 4.8 console application using the TaskScheduler COM library. Using that library, I am able to create scheduled tasks with a gMSA account by setting the password to null. Using this library, I am unable to create the task with a gMSA account. I get the following error:
The task has been configured with an unsupported combination of account settings and run time options. (0x80041314)
I am setting the
forceV1
parameter to true in this line of code:SchedTask.TaskService ts = new SchedTask.TaskService(options?.ServerWithBackslashes, (string)null, (string)null, (string)null, true);
I am unable to connect to Windows 2019 server otherwise. The failure occurs on RegisterTaskDefinition call below:
I'd like to add that when I use a normal account name and password, the scheduled task is created just fine.
Beta Was this translation helpful? Give feedback.
All reactions