Link to home
Start Free TrialLog in
Avatar of whyer
whyer

asked on

Run scheduled tasks as System

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.

 
ASKER CERTIFIED SOLUTION
Avatar of NEOsporin
NEOsporin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of whyer
whyer

ASKER

So, ¿Is not possible to schedule a task to be run using the System account? If it's possible, please correct me and say me how to attain it and take me out of this mess.

Thank you very much.
No- It's not- in the first link i sent this is a quote:

--->The system account was designed for that purpose; it is an internal account, does not show up in User Manager, cannot be added to any groups, and cannot have user rights assigned to it. <------(except for File permissions)

The system account is for the internal OS stuff, if you look at Task Manager, you'll see the services started by SYSTEM. These are CORE services for the most part. For example the SYSTEM account creates the pagefile on your hd, if you remove the system account from the drive that your pagefile resides on, you'll see an error. The system account is what boot's up your machine, the system account is what will run your scheduled task, in the sense that IT TRIGGERS the task as you configured it. That is to say, and this is a stretch, not a great example but:
Say your PC isn't logged in as anyone, but is running, and you configured a scheduled task to run as "WilliamTell" user. The System account is going to internally "double-click" the scheduled task to run, and the task will go as planed, WilliamTell will start the program you scheduled to run at that time, and then that task will end.

You can however use the system account to start a Service, such as mcafee virus scanner, or VNC server... etc.. services can also be started with user accounts.
Here's more of what I touched on earlier.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/win32_systemaccount.asp

http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechnol/windowsserver2003/proddocs/server/sys_srv_permissions.asp

http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b259151
-NEO
Avatar of whyer

ASKER

Thank you very much for your detailed answer NEOsporin that has clarified me some things about the System account; but my main doubt comes from the fact that is possible to use the System account in the schtask command syntax using the /RU "" or the other two forms of the modifier in order to run a task as System. And is also feasible to specify the System account in the 'run as' text box of the Task Scheduler.

Maybe, those two practicable methods, which possibility is expected in the first case and at least uncorrected in the second one, are only conceived to schedule a service start to logon using the System account or schedule, if is that possible, another internal OS "thing"?.

Thank you very much again and I apologize for my insistence.
 
whyer:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
The answer provided earlier is wrond.
It is possible to schedule tasks with the Systems account using the AT command.
Issue AT /? at command line to get details for use.