Script Cancel Jobs
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
I need list the cancel jobs.
Thank´s
d´For
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer Where Name = 'HP QuietJet'")
For Each objPrinter in colInstalledPrinters
objPrinter.CancelAllJobs()
Next
.
Relevant Pages
- Get printer info across domain
... Is there a way to run the following across a domain instead of just the host ... Set colInstalledPrinters = objWMIService.ExecQuery _ ... For Each objPrinter in colInstalledPrinters ... Prev by Date: ... (microsoft.public.windows.server.scripting) - Re: Discover local printers in SMS 2003
... OOPPPSS, wrong script, this one; ... > Set colInstalledPrinters = objWMIService.ExecQuery _ ... > For Each objPrinter in colInstalledPrinters ... >>> attached printers, even direct IP printers, just nothing on network ... (microsoft.public.sms.admin) - Re: Removing multiple printer connections.
... Set colInstalledPrinters = objWMIService.ExecQuery("Select * from ... For Each objPrinter in colInstalledPrinters ... if i = "Adobe PDF" then ... (microsoft.public.scripting.vbscript) - WMI Conversion
... Can anyone tell me what the script below is in VB.NET WMI format? ... Set colInstalledPrinters = objWMIService.ExecQuery _ ... For Each objPrinter in colInstalledPrinters ... (microsoft.public.dotnet.languages.vb) - Re: How to use wmi to set up printer print processor ?
... The code snippet i 'm triying and does not work ... Set colInstalledPrinters = objWMIService.ExecQuery("Select * from ... For Each objPrinter in colInstalledPrinters ... (microsoft.public.win32.programmer.wmi) |
|