Tuesday, June 1, 2010

Windows 2008 Scheduler Truncates Domain Name


I've discovered a strange bug in Windows 2008 Standard x86.  When you assign a domain account to run a scheduled  task, the name of the domain will be truncated.

In this case the domain is called "LocalDomain" and the user is "SQLAdmin".

When you create the task in Win2008 task scheduler the Domain will be truncated to "Local".















Needless to say, this will not work.  I couldn't locate any fix for this so I devised a work-around where you:
  1. export the task
  2. delete the task from task scheduler
  3. edit the exported XML document
  4. and then re-import the resulting task   

In step 3 you edit the "UserID" section of the XML document:

 
 
 
 
 
 
 
 
 
 
 
 
Save the file and then re-import the task into task scheduler and it should work as required.