' Kod usuwa zaplanowane zadanie
' ------ KONFIGURACJA SKRYPTU ------
intJobID = <IdentyfikatorZadania>      ' np. 1452
strComputer = "<NazwaSerwera>"         ' np. dns01 
' ------ KONIEC KONFIGURACJI ---------
set objWMI = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
set objInstance = objWMI.Get("Win32_ScheduledJob.JobID=" & intJobID)
intRC = objInstance.Delete
if intRC <> 0 then
   Wscript.Echo "Nie udao si usunicie zadania z identyfikatorem: " & intJobID
else 
   Wscript.Echo "Z powodzeniem usunito zadanie z identyfikatorem: " & intJobID
end if
