Q

Task that calls a .bat file hangs regularly

I have a server running Windows 2000 with 256 MB RAM. I have several tasks scheduled, but one that calls a .bat file seems to hang every other day. I use this same standard across many other identical servers with no problem. I can delete it but when MSTASK.EXE hangs, it cannot be stopped -- it just says "Stopping" in the services window. I tried to use KILL.EXE and that doesn't do anything either. Any suggestions? Would using the .cmd extension improve performance/reliability? Could I copy over the MSTASK.EXE from another PC as a start? Thanks.
I don't know of a specific solution, but the issue may not be with Scheduled Tasks. Delete the scheduled task then manually execute the .bat file at the necessary time each day for five days. If the script hangs, then you know the script is the problem not Scheduled Tasks. If it is a script issue, you'll have to troubleshoot it. If it is Scheduled Tasks, I would first seek out a hotfix (if there is one). You could check the version and file size on all Scheduled Tasks-related files to make sure they have not been corrupted or damaged. A tool called ProcessEX from SysInternals.com and WinInternals.com can help you find all the related files.
This was first published in June 2003

Dig deeper on Microsoft Group Policy Management

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close