Re: 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 here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto

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

"Maurice" <Maurice@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:67DFA280-0FF1-4997-BA4D-80839660C741@xxxxxxxxxxxxxxxx
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


.



Relevant Pages

  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... This remote server was built using connect computer script, ...
    (microsoft.public.windows.server.sbs)
  • Re: Remote office logon script - Long Delay
    ... Windows IP Configuration ... If I point the User's profile to a script that doesn't contain the ... I do not have WINS configured for the remote site, ... is a GC/AD server with DNS and DHCP for it's area. ...
    (microsoft.public.windows.server.sbs)
  • RE: Permission Denied when trying to access remote computer with VBScr
    ... I am having a simular problem with a remote script. ... I am using the following to access the Services on a remote 2000 Server. ... Set objSWbemLocator = CreateObject ...
    (microsoft.public.windowsxp.wmi)
  • Re: DBI Performance Issues
    ... use the cpu or the network hardware during remote tests. ... first the live script is run from a sun solaris machine using ... server machine. ...
    (comp.lang.perl.misc)