schtask.exe command gives a "ERROR: class not registered"

hjfullingim
hjfullingim used Ask the Experts™
on
Hi, I get the following error when running 'schtask' command;  "ERROR: Class not registered"

I also noticed that the "Scheduled Tasks" Icon on Control Panel is showing as 'Unknown' icon.

This is on a Windows Server 2003 Standard SP1. Any help will be greatly appreciated.

Thanks in advance
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hello

Can you try to execute regsvr32 taskscheduler.dll command?

DaN

Author

Commented:
I got the following prompt error:

LoadLibrary("taskscheduler.dll") failed - The specified module could not be found.

Although the already scheduled tasks do run.  Also I couldn't find that "taskscheduler.dll" file on either my computer or another server with same specs.

Thanks
Omar
Sorry, my fault.

Try with mstask.dll

DaN

Author

Commented:
I got the same error for that file.

I did a search for that file on the computer and it was on a different folder (from system32).  So I copied to system32 and reran the regsvr32 command, and now it said that the file can't be registered. Although "Scheduled Tasks" icon and "schtasks" command are working again.

Many thanks
maybe because the dll was registered but was moved.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial