Hi,
stopping and starting spooler will not flush queue
you should use net print commands
take a look:
http://www.microsoft.com/r
Main Topics
Browse All TopicsDear all,
Does anyone know how can I flush a print queue from the command line?
Thanks,
---
XC
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi,
stopping and starting spooler will not flush queue
you should use net print commands
take a look:
http://www.microsoft.com/r
Hi,
wrote this script for you, change \\server\printer to your computer name with shared printer, in the following string change \\server to your server name.
good luck!
@echo off
:: Remove all print queue
:: beem4n / ExpertsExchange team
net print \\server\printer > 1.txt
for /F "skip=8 tokens=2,3" %%i in (1.txt) do start net print \\server %%i /DELETE | findstr /V "command"
del 1.txt
Hi all,
Sorry for the delay, but i was looking for an alternative and at the folowing address...
http://www.microsoft.com/r
... I found this:
PrnAdmin
The PrnAdmin utility lets you use scripts that perform administrative printer functions. You can create your own scripts or modify one of the sample scripts that is provided with PrnAdmin. Either way you can manage both local and remote printers using PrnAdmin.
This tool can perform the following functions:
Add or delete local or remote printers.
Add or delete printer connections.
Add or delete local or remote forms.
Add or delete ports on local or remote printers.
Add or delete printer drivers on local or remote printers.
Enumerate ports, drivers, printers, or forms on local or remote printers.
Pause, resume, or purge a local or remote printer.
Configure a local or remote printer.
Does anyone know about this? ...and how to use to to flush print jobs?
---
XC
Business Accounts
Answer for Membership
by: valiconPosted on 2005-08-30 at 18:56:50ID: 14790334
You can stop and start the print spooler.
net stop spooler
net start spooler