Manage Scheduled Tasks from a script

Windows Management Instrumentation (WMI) provide a simple way to manage Scheduled Tasks using the Win32_ScheduledJob class and an example is provided here.

Sometimes you can experience no result from this script, this issue happened because Windows provide 2 method for generating scheduled tasks: AT.EXE and SCHTASK.EXE that use different and not compatible APIs.

The WMI interface is compatible only with API used by AT.EXE and GUI provided by Windows 2000.

About author

Vittorio Pavesi