Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clear printer queue

Status
Not open for further replies.

duster123

Technical User
Jun 21, 2006
168
GB
Is there a way i can give rights to someone to clear print jobs without them having to log on locally to the server? ex. i want my helpdesk techs to be able to clear print queues
 
yes i can do that but then wont they have to log on locally to the server?
 
You could just have them run the SC utility to remote restart the Print Spooler service. That will clear the print queue.

You could turn it into a VBScript or HTA, prompting the user to input the computername to clear.

I hope you find this post helpful,

Jonathan Almquist
Minneapolis, MN
 
how do i have them run the "SC Utility"?
 
From a command prompt, issue the following command:

sc \\<computername> stop spooler

Then, of course start the spooler with the same command only replacing "stop" with "start".

If you need to run this command in the context of a different user account, it would look like this:

runas /user:<domain>\<user> "sc \\<computername> stop spooler"

Using alternate credentials, you'll be prompted for a password.

Again, restart the service replacing "stop" with "start".

I hope you find this post helpful,

Jonathan Almquist
Minneapolis, MN
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top