Understand about managed service accounts and how it can create schedule tasks using powershell commands. I have created daily and weekly scheduled tasks successfully without issue. Problem is I was not able to create a monthly schedule task for the MSA as the powershell commands does not support month options. I have read the link below which suggested importing a working daily scheduled task, modify the XML and then import it back. I tried that but will hit the "Launch failure" with error code "2147942402".
I also tried creating a monthly task using GUI, and then change the user using the Set-ScheduledTask powershell command. It also hit the same error.
Further testing shows the following behavior:
- if I create a daily task using GUI, and modify the user using Set-ScheduleTask command, it works. Monthly tasks fails.
- If I use the import and export XML method, it works for daily tasks, but not for monthly task.
My server setup is as follows:
host: Windows Server 2012 R2
Domain Controller: Windows Server 2008 R2
Does anyone manage to create a monthly Scheduled task for MSA?
- Edited by parkzone-extreme 50 minutes ago