Grab our RSS feeds Follow us on Twitter Join our Facebook Group Connect with us on LinkedIn
myITforum.com, Powered by You.
you are not logged in

Articles

Newslinks

Links

Downloads

Site Services

Community Forums

Discussion Lists

Article Search

Newsletter

Web Blogs

FAQs

Live Support

myITforum TV

Take a Poll

Monthly Drawing

myITforum Network

User Group Directory

Our Partners

About Us

Register

Login

BRONZE PARTNER:

BRONZE PARTNER:



Industry News:




  Home : Articles : Scripting print | email | | Forums |   print | email | | Blogs |   print | email | | Wiki |   print | email | | FAQs |   print | email | Article Search  
VBS Script To Cancel All Active Print Jobs On A Local Machine


Bookmark and Share

By: Don Hite
Posted On: 1/29/2008

This By Request Vbs script will cancel all of the active print jobs on the computer from which the script is executed on.

VBS Script:

strComputer = "LocalHost"

Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_Printer")

For Each objItem in colItems
objItem.CancelAllJobs
Next

MsgBox "Done"




  myITforum.com ©2010 | Legal | Privacy