• Books
  • Movies
  • Sports
    • Football
    • Hockey
  • Tech
    • Apps
    • Networking
    • Virtualization
    • Linux
      • CentOS
      • Ubuntu
    • MacOS
    • Microsoft
  • Recipes
  • Family
  • About
  • Home.Lab Project
    • Home.Lab Hardware
      • Storage CentOS Server (Phoenix)
      • Centos Hypervisor (Cyclops)
      • CentOS Hypervisor (Wolverine)
      • Homegrown SuperMicro ESXi Hypervisor (Deadpool)
    • Networking
      • Hypervisor Network
      • Juniper SSG5 Configuration
      • Security Zone Configuration
    • Virtual Machines
      • Black Widow (RHEL 6.4)
    • Hypervisor Technologies
    • Tutorials
      • Creating an iSCSI Target in CentOS 6.4
      • Managing Linux Hypervisors through Windows
Home » Tech » Troubleshooting XP Scheduled Tasks

Troubleshooting XP Scheduled Tasks

Posted on February 15, 2013 by Vitaly Posted in Tech

I use Scheduled Tasks in Windows XP to kick off automated processes.  On one particular machine, everything worked fine for several years until recently the scheduled tasks would no longer start.

Checking the Scheduled Tasks’ properties, the user account was still configured correctly with the correct password.

Checking the Scheduled Tasks’ log in:

  1. Start –> All Programs –> Accessories –> System Tools –> Scheduled Tasks
  2. Menu: Advanced –> View Log.

the log contained the following info [edited] for my scheduled job:

“nightly.job” (nightly.bat) 1/1/2009 9: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:
0×80070569: Logon failure: the user has not been granted the requested logon type at this computer.
Verify that the task’s Run-as name and password are valid and try again.

It turns out that the user that is assigned to a scheduled task, must also be assigned to the “Log on as a batch job” account policy.

Normally, on a local machine, if you add a user to a scheduled task, then that user will automatically be added to the policy.  However; if your machine is connected to a domain, then the domain settings may periodically overwrite the local account policies.

In order to fix the scheduled tasks, I needed to add my user back into the “Log on as a batch job” policy.  However, since the domain controls the policy I had to add my user to the local “Backup Operators” group so that the policy would once again apply.

To view the “Log on as a batch job” Policy:

  1. Control Panel –> Administrator Tools –> Local Security Policy –> Local Policies –> User Rights Assignment –> Log on as a batch job
  2. Right-click –> Properties
  3. This lists the users and groups that have rights to run batch jobs.

To add the user to the Backup Operators group:

  1. Control Panel –> Administrator Tools –> Computer Management –> Local Users And Groups –> Groups –> Backup Operators
  2. Add…
  3. Add the user that is set for the scheduled tasks.

Additional steps for a full reset of the scheduler:

  • Go into Services and STOP Task Scheduler and then DISABLE it.
  • Go to your Windows folder and delete SCHEDLGU.TXT (I could be off a letter or two on that filename).
  • Now set Task Scheduler back to AUTOMATIC and START it.

References:

  • Comment # 9 in http://www.pcreview.co.uk/forums/thread-395546.php
  • http://support.microsoft.com/kb/308558
« Clearing the Remmina RDP cache
Meema’s Ambrosia Fruit Salad »

Leave a comment Cancel reply

Your email address will not be published. Required fields are marked *

Around the Way

February 2013
M T W T F S S
 123
45678910
11121314151617
18192021222324
25262728  
« Dec   Apr »

Recent Posts

  • Getting spice client console working in Virt-Manager for Mint 19
  • Using RealVNC in Windows to connect to a KVM session
  • Switching the default user when using SSH
  • X-Men Apocalypse Movie Review
  • Getting Virt-Manager working in Ubuntu 16.04 LTS bypassing openssh-askpass

Old School

  • September 2018
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • August 2013
  • July 2013
  • April 2013
  • February 2013
  • December 2012
  • November 2012

Archives

  • September 2018
  • August 2016
  • July 2016
  • June 2016
  • April 2016
  • February 2016
  • January 2016
  • August 2013
  • July 2013
  • April 2013
  • February 2013
  • December 2012
  • November 2012

Recent Posts

  • Getting spice client console working in Virt-Manager for Mint 19
  • Using RealVNC in Windows to connect to a KVM session
  • Switching the default user when using SSH
  • X-Men Apocalypse Movie Review
  • Getting Virt-Manager working in Ubuntu 16.04 LTS bypassing openssh-askpass
© Chubby Apple