Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Script for network printer

Posted on 2006-06-29
6
Medium Priority
?
210 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
  • 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 800 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 

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 1200 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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.  …
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

879 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