Create Monthly Schedule Tasks for Managed Service Accounts in Windows Server 2012 R2

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". 

http://social.technet.microsoft.com/Forums/windowsserver/en-US/18eb3f7e-ea54-4f60-8c0b-8659cad5e2d9/creating-a-scheduled-task-using-powershell-v4

  

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?






June 25th, 2014 5:43am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics