A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Printing and Faxing with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Deleting all jobs in remote print queue



 
 
Thread Tools Display Modes
  #1  
Old April 11th 07, 10:08 PM posted to microsoft.public.windowsxp.print_fax
Maurice
external usenet poster
 
Posts: 57
Default Deleting all jobs in remote print queue

Hello,

We have situations in which we need to delete all print jobs, for remote
print queues, via a script. I tried the 'Net Print /delete' command, but,
I don't see a way to use that without specifying a job number. Does anyone
know of a way to clear out all jobs?

Thanks
M
Ads
  #2  
Old April 18th 07, 03:15 AM posted to microsoft.public.windowsxp.print_fax
Alan Morris [MSFT]
external usenet poster
 
Posts: 783
Default Deleting all jobs in remote print queue

use the prnqctl.vbs script in \windows\system32. This will work if the
remote machine is Server 2003 or XP. If the remote is a cluster you will
need to pick up the Windows Resource kit since WMI interface only works to
the node.


Usage: prnqctl [-zmex?] [-s server][-p printer][-u user name][-w password]

Arguments:
-e - print test page
-m - resume the printer
-p - printer name
-s - server name
-u - user name
-w - password
-x - purge the printer (cancel all jobs)
-z - pause the printer
-? - display command usage

Examples:
prnqctl -e -s server -p printer
prnqctl -m -p printer
prnqctl -x -p printer

--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base he
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.

"Maurice" wrote in message
...
Hello,

We have situations in which we need to delete all print jobs, for remote
print queues, via a script. I tried the 'Net Print /delete' command,
but,
I don't see a way to use that without specifying a job number. Does
anyone
know of a way to clear out all jobs?

Thanks
M



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 10:50 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.