Solved

Script for network printer

Posted on 2006-06-29
6
207 Views
Last Modified: 2013-12-03
There is a printer that is on the network and it keeps "pausing".  How do I code a script to "unpause" this printer?  I would like the script to run every 2 minutes.  

Thanks,
0
Comment
Question by:rgrguric
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Author Comment

by:rgrguric
ID: 17010178
It is a windows network and all cpu's are running Windows XP.
0
 
LVL 86

Assisted Solution

by:jkr
jkr earned 200 total points
ID: 17010773
Does

net print \\server\printername /release

work if you do that manually?
0
 

Author Comment

by:rgrguric
ID: 17012209
I tried running that line of code and got this error...

NET PRINT
\\computername\sharename
          [\\computername] job# [/HOLD | /RELEASE | /DELETE]
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:rgrguric
ID: 17012444
Ok, so I used the correct syntax and it works for any print job... But how do I unpause the printer itself?
0
 
LVL 86

Expert Comment

by:jkr
ID: 17015046
Sorry, it seems that I missed the Job ID part...
0
 
LVL 25

Accepted Solution

by:
clockwatcher earned 300 total points
ID: 17025715
If you've got XP, give this script a try:

   http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/prnqctl.mspx?mfr=true

cscript %SYSTEMROOT%\SYSTEM32\prnqctl.vbs -m [-s RemoteComputer] -p PrinterName [-u UserName -w Password]
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question