Solved

Script for network printer

Posted on 2006-06-29
6
208 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

624 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