TaskFolder.DeleteTask always returns Access Denied

Vista Beta2 Build 5384. The following always fails with Access Denied:

Set service = CreateObject("Schedule.Service")
call service.Connect()

Dim rootFolder
Set rootFolder = service.GetFolder("\")

rootFolder.DeleteTask("task name", 0)

Using the Task Scheduler MMC I can delete the task. The task was created by the same user as the one running the script.

Any ideas?

[432 byte] By [MickyJ] at [2007-12-24]
# 1
Problem still exists with RC1...
MickyJ at 2007-8-31 > top of Msdn Tech,Software Development for Windows Vista,General Windows Vista Development Issues...

Software Development for Windows Vista

Site Classified