B
bennett
I have an XP Pro gold (no service packs) Virtual PC image and an XP
Pro SP2 Virtual PC image. The XP Pro SP2 one was created by going
back and forth with the XP Pro gold one, so I know for sure that the
only difference between the two is Service Pack 2. (Plus whatever
security updates I had to install to get up to SP2.)
I am trying to debug a problem with an application that attempts to
set up a scheduled task to run as the SYSTEM user. I attempt to
create a task to run Notepad as "SYSTEM" as follows:
- Open Control Panel->Scheduled Tasks
- Right-click New->Scheduled Task. Name it "system notepad"
- Open properties. For "Run:", put "notepad" (no quotes)
- For "Run as", put "SYSTEM" (no quotes). (If you close this dialog
and re-open it, Windows will have expanded this to "NT AUTHORITY
\SYSTEM".)
- Switch to Schedule tab, and for "Start time" enter the next minute.
Then click "Advanced" and set the date to run as today. (It defaults
to running it tomorrow.)
- Click OK to close the properties. It will prompt you for a password
for the "SYSTEM" user. Leave blank and click OK.
When I do this on SP2, after the minute changes, I can bring up Task
Manager, look at Processes, check the box marked "Show processes for
all users", and I'll see an instance of Notepad, which I then kill.
The task is listed in Scheduled Tasks as "Running" until I kill it.
But when I do this on XP Pro gold, after the minute changes, the task
is listed under Scheduled Tasks with "The scheduled task did not run
because an incorrect password or user name was entered." If I look in
the c:\windows\SchedLgU.Txt log file the error says:"system notepad.job" (notepad.exe) 1/27/2007 8:00:00 PM ** ERROR **
The attempt to log on to the account associated with the task failed,
therefore, the task did not run.
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.
On both gold and SP2, if I go to Administrative Tools->Local Security
Settings->Local Policies->Security Options, the option "Limit local
account use of blank passwords to console logon only" is listed as
"Enabled". (But in any case, a blank password should be good enough
for tasks that are scheduled to run as SYSTEM.)
Can anyone suggest why this fails in XP gold, and what changed between
gold and SP2 that causes it to work? Was it just a bug fix or was it
a change to some system setting somewhere?
Pro SP2 Virtual PC image. The XP Pro SP2 one was created by going
back and forth with the XP Pro gold one, so I know for sure that the
only difference between the two is Service Pack 2. (Plus whatever
security updates I had to install to get up to SP2.)
I am trying to debug a problem with an application that attempts to
set up a scheduled task to run as the SYSTEM user. I attempt to
create a task to run Notepad as "SYSTEM" as follows:
- Open Control Panel->Scheduled Tasks
- Right-click New->Scheduled Task. Name it "system notepad"
- Open properties. For "Run:", put "notepad" (no quotes)
- For "Run as", put "SYSTEM" (no quotes). (If you close this dialog
and re-open it, Windows will have expanded this to "NT AUTHORITY
\SYSTEM".)
- Switch to Schedule tab, and for "Start time" enter the next minute.
Then click "Advanced" and set the date to run as today. (It defaults
to running it tomorrow.)
- Click OK to close the properties. It will prompt you for a password
for the "SYSTEM" user. Leave blank and click OK.
When I do this on SP2, after the minute changes, I can bring up Task
Manager, look at Processes, check the box marked "Show processes for
all users", and I'll see an instance of Notepad, which I then kill.
The task is listed in Scheduled Tasks as "Running" until I kill it.
But when I do this on XP Pro gold, after the minute changes, the task
is listed under Scheduled Tasks with "The scheduled task did not run
because an incorrect password or user name was entered." If I look in
the c:\windows\SchedLgU.Txt log file the error says:"system notepad.job" (notepad.exe) 1/27/2007 8:00:00 PM ** ERROR **
The attempt to log on to the account associated with the task failed,
therefore, the task did not run.
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.
On both gold and SP2, if I go to Administrative Tools->Local Security
Settings->Local Policies->Security Options, the option "Limit local
account use of blank passwords to console logon only" is listed as
"Enabled". (But in any case, a blank password should be good enough
for tasks that are scheduled to run as SYSTEM.)
Can anyone suggest why this fails in XP gold, and what changed between
gold and SP2 that causes it to work? Was it just a bug fix or was it
a change to some system setting somewhere?