What I have so far is this,
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer")
For Each objPrinter in colInstalledPrinters
objPrinter.CancelAllJobs()
Next
That manages to delete all printer jobs, from all printers, but does anyone know how i can now go about just deleting printing jobs that have came up with errors?
Thanks.