Run scheduled tasks as System
Posted on 2003-03-05
In Windows XP Professional, when I schedule any task to be run as System whether from Task Scheduler or from schtasks command; or when I run the task manually to test it, the SchedLgU.txt log registers the next error:
The specific error is:
0x8007052e: Logon failure: unknown user name or bad password.
Verify that the task's Run-as name and password are valid and try again.
The Run-as name is correct and the System account doesn't have assigned any password.
If I try to run them as a user account it works. I know that, by design, a password is required to properly run scheduled tasks, and that this requirement can be disabled from Local Security Policies BUT I need to schedule some tasks to be run as SYSTEM cause I need full access to ALL the files, and that tweak doesn't fix anything for me. So, if as schtasks command help announces "the password is not required when using the /RU "", or the other two forms of the modifier to schedule a task to be run as System account", why devils the account is not recognized?
With Sysinternals Regmon I've realized that the Scheduler tries to find a subkey under HKLM\SAM\SAM\Account\User\[subkey]; and that success to find the correspondant one when the task is run as any user account but not when run as System.
And... The Task Scheduler Service is correctly configured to logon through the System account.
The question is:
Why the System account is not being recognized?
Thank you very much indeed for your possible help.