Solved

Task Scheduler Not Running

Posted on 2002-03-07
16
452 Views
Last Modified: 2010-04-13
Windows 2000 Advanced Server Domain Controllers (2) with Service Pack 2 installed.

mstask.exe version 4.71.2195.1 (which is supposed to be the one with the bugged ironed out according to Knowlege base)

Tasks not running as scheduled.  Have tried various tasks, simple batch files, NT backup etc. and even just for testing tried launching calc.exe or notepad.  

Have tried restarting service etc., reinstalled Service Pack 2, no joy.

The programs / batch file run okay if I right click and click run so its not a program or script problem.

Also if I configure the exact same setting for a task on a Windows 2000 desktop PC, it runs no problem, so it's wouldn't appear to be a problem with the configuration of the actual task either.

Anyone any ideas ?

Thanks, LMG
0
Comment
Question by:littlemissg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 4
  • 2
  • +3
16 Comments
 

Author Comment

by:littlemissg
ID: 6847066
BTW the tasks are configured to run under Domain Administrator a/c
0
 
LVL 17

Expert Comment

by:mikecr
ID: 6847067
Do you have the schedular service running?
0
 
LVL 44

Expert Comment

by:CrazyOne
ID: 6847184
Are any permissions set disallowing task scheduler not to run?

you might try

Start > Run and type in

sfc /scannow


The Crazy One
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:littlemissg
ID: 6847322
mikecr: yes the service is running and I have tried restarting it

Crazy One: can't think of any permissions settings that would be disallowing Task Scheudler to run.  The service itself is set to run under the system account and the individual tasks under the domain admin account.  There aren't any particular local security polices applied to the servers that should be restricting this service.  They are basically a stardard setup and configuration.

I ran sfc /scannow on each DC, didn't find any problems
0
 
LVL 17

Expert Comment

by:mikecr
ID: 6847391
If you go to Task Schedular and click on the Advanced menu and look at AT Service Account, what is listed, use system or some other account? Also, if you click view log, can you copy and paste it hear right after you run a job that fails so we can see what is being registered?
0
 

Author Comment

by:littlemissg
ID: 6847475
Hi Mike,
Not sure what you mean,
There isn't any advanced Tab in the Task Scheduler properties.
In properties of the task, under the Schedule tab there is an Advanced button but this only leads to advanced schdule settings for repeating task every xMinutes.
In the Properties of the Task Schedular service itself, again there is no advanced tab.
Also there is no 'View Log' option in either place.

As I've mentioned already, the Task Scheduler service is set to run under the SYSTEM account and the tasks themselves are set to run under the Domain Administrator Account.

sounds like a good track your on if I could get to see a log of whats going on when it fails, but I haven't found anywhere to view this.



0
 
LVL 17

Expert Comment

by:mikecr
ID: 6847742
If you go into where you jobs are scheduled and you see the Task Wizard, if you click on the Advanced menu option you should see view log on the list. Don't go into the tasks themselves.
0
 

Author Comment

by:littlemissg
ID: 6847814
aha! silly me !  Yes the AT command is running under the system account

..and the plot thickens because, this log files states that the tasks ARE running, although the ntbackup tasks are finishing with a status code of (0) which I assume is unsuccessful as the other small batch files are finishing with exits codes of (400000) & (2) etc.

I will investigate the ntbackup configuration further.  

This is great help now being able to view the logs, I don't know how I missed that menu (couln't see the forest for the trees!)

I'll play around with it a bit more and see what the results are in the morning and let you know,
thanks.
0
 
LVL 17

Expert Comment

by:mikecr
ID: 6847894
Here you can find the output of the codes and what they mean.

http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q267031
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 6848570
For NT Backup, I would look at the MS site for known problems in scheduling and the following info :

http://support.microsoft.com/support/kb/articles/Q239/8/92.ASP  How to Schedule Unattended Backups Using a Stand-Alone Tape Library
  Windows 2000 maintains a list of files and folders that are excluded when you backup and restore
  files using the Ntbackup.exe tool and other Windows 2000 compatible backup programs.

  Windows 2000 stores this information in the following registry keys:

            HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup

            HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\KeysNotToRestore

  The default values and value data for the
  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\FilesNotToBackup registry
  key is listed in the following table.

                   Value                    Value Data
              Client Side
              Cache    %SystemRoot%\csc\* /s
              ComPlus     %SystemRoot%\Registration\*.crmlog /s
              Internet           Explorer   %UserProfile%\index.dat /s
              Memory           Page File    \Pagefile.sys
              MS      Distributed       Transaction
                                      %SYSTEMROOT%\System32\DTCLog\MSDTC.LOG
              NtFrs   %systemroot%\ntfrs\jet\* /s %SystemRoot%\debug\NtFrs*
                                      %systemroot%\sysvol\domain\DO_NOT_REMOVE_NtFrs_PreInstall_Directory\*
                                      /s %systemroot%\sysvol\domain\NtFrs_PreExisting___See_EventLog\* /s
                                      %systemroot%\sysvol\staging\domain\NTFRS_*
              Power           Management  \hiberfil.sys
              Temporary           Files   %TEMP%\* /s

  The default values and value data for the
  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\BackupRestore\KeysNotToRestore registry
  key are listed in the following table.

                        Value                 Value Data
              Active Directory           Restore
                                               CurrentControlSet\Services\NTDS\Restore In Progress\
                                               CurrentControlSet\Services\NTDS\Parameters\New Database GUID     Fault Tolerance
                                               Disk\
              Installed Services           CurrentControlSet\Services\*
              LDM Boot          Information
                                               CurrentControlSet\Services\dmio\boot info\
              Mount Manager                           MountedDevices\
              Pending Rename             Operations
                                               CurrentControlSet\Control\Session
                                               Manager\PendingFileRenameOperations
              Plug and Play             CurrentControlSet\Enum\
                                               CurrentControlSet\Control\CriticalDeviceDatabase\
              Session Manager            CurrentControlSet\Control\Session
              Windows Setup              Setup\SystemPartition

--------------------------------
0
 

Author Comment

by:littlemissg
ID: 6850198
Thanks for links etc.  which I've been scanning through...
Looks like there are a lot of documented problems with schdeduled ntbackup jobs!  
The Registry settings given by SysExpert are the same on my DCs.
I have got it working locally now, as a test schedule job just backing up system state to a local drive.
It appear to have a problem backing up to a mapped drive when scheduled (I can do it fine if I choose backup now and specify the mapped drive)  
So at least I am zoning in on the problem now...
I won't be online again for a few days, but will post the outcome/update on my return.
cheers,
LMG
0
 
LVL 63

Expert Comment

by:SysExpert
ID: 6853667
Make sure that the mapped drive exists and is persistant, and not per user.

It may not exist for the scheduled service otherwise.

I hope this helps !
0
 

Author Comment

by:littlemissg
ID: 7031655
Forgot I hadn't closed this q. just logged on to site again today.

Scheduler still won't run on 2k server emulating PDC but is running on another DC.  exact same set on both!
0
 
LVL 11

Expert Comment

by:ewtaylor
ID: 8904528
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
[paq refund]
Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
[ewtaylor]
EE Cleanup Volunteer
0
 

Author Comment

by:littlemissg
ID: 8915367
How do I delete/close this Q as has not been resolved
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 8997232
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article explores several main social media platforms.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question