Monitor print queue for job size

Hi,
Problem: Occasionally, some print queues are found with a job that is spooling uncontrolled. Job will reach 2/3GB which will cause services to under perform and sometimes crash.
We are looking at understanding the reason why the file is spooling uncontrolled. I believe it is something to do with the fact some of the users are roaming users and when moving site, when arriving to a new site they should get the correct printers for
that site. It is happening that this is not being applied so they print to the printer on the previous site where they were, which seems to cause this behavior.... anyway.. I do not have any more logic details around this.. still exploring..
The question today is, can I set some sort of monitoring on the local print server to alert me when a job on any print queue has reached a specific size?
Or perhaps delete the job automatically if it does reach this threshold.
Thank you

On Server 2012 use the powershell commands included with the product.  For 2008R2 and prior use the WMI Interfaces and the scripts included with the OS
prnjobs.vbs to list job size and ID, then when the size is excessive the same script is used to delete the job.
This information at the scripting center looks like what you wish to accomplish
https://gallery.technet.microsoft.com/scriptcenter/9b07ec17-a3ae-427d-a417-c95f05fc515f
Alan Morris formerly with Windows Printing Team

Similar Messages

  • One print queue for each job?

    We have customer jobs that last for a year or so. We have a networked HP printer. Is it possible to set up multiple print queues for this same printer, so that we can keep track of which print jobs should be charged to each customer? I can set up a new print queue connected to the printer (although with "Kind" as "Generic PostScript Printer" instead of the printer model) and then I can print to it from the server; and it shows up in the printer list on the client stations (although with a diamond next to it), but when I select it in the Print dialog on the client station I get a spinning beachball and have to force quit e.g. Word. Is this an impossibility, or is there a way to do it?
    PowerMac G5   Mac OS X (10.4.3)  

    At AUC, Dov Issacs posted:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Beginning with Windows Vista (and also true for Windows 7), the Adobe PDF PostScript printer driver instance must have its Advanced=>Spool Print Documents ... setting to Start printing immediately instead of either of the other settings. The other settings will yield the behaviour that you describe.
    http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=23380
    The "Adobe PDF PostScript printer driver" would be the "Adobe Printer".
    Perhaps a tweak to your installed Adobe Printer to reflect Dov's guidance will resolve the issue.
    Be well...

  • RG1 printing format for A4 size paper with all records

    RG1 register print not showing all details (Qty.) through J2i6 and no proper printing format for A4 size.
    Is there any std. printing format for RG1 ?
    Please give the std. ready format for RG1....
    THANKS.

    Your subject title mentions A4 sized paper, the body mentions US Letter size.
    Assuming you want one half of a letter-size for each page, create the page size as portrait, 5.5" wide, 8.5" tall.
    Thread in logical order, page 1 through...how many ever pages. You should have a page count evenly divisible by 4.
    Export to PDF as normal...single pages.
    Open the PDF in Acrobat or Reader, print the booklet from it.
    Mike

  • Re-map print queues for clients with powershell

    We reinstalled printer queues (share printer name is the same as before) and drivers on server, 99% users can't print properly, is a way to re-map print queues for all clients with PowerShell equivalent to remove and map again?

    Hi Brent,
    To re-map all of the printers, please check this script written by Boe Prox:
    <#
    .SYNOPSIS
    Logon Script to migrate printer mapping
    .DESCRIPTION
    Logon Script to migrate printer mappings
    .NOTES
    Author: Boe Prox
    Create: 09 NOV 2012
    Modified:
    Version 1.0 - Initial Script Creation
    1.1 Added Header Text for CSV file
    #>
    Param (
    $newPrintServer = "Server2",
    $PrinterLog = "\\LogSVR\PrintMigration$\PrintMigration.csv"
    <#
    #Header for CSV log file:
    "COMPUTERNAME,USERNAME,PRINTERNAME,RETURNCODE-ERRORMESSAGE,DATETIME,STATUS" |
    Out-File -FilePath $PrinterLog -Encoding ASCII
    #>
    Try {
    Write-Verbose ("{0}: Checking for printers mapped to old print server" -f $Env:USERNAME)
    $printers = @(Get-WmiObject -Class Win32_Printer -Filter "SystemName='\\\\Server1'" -ErrorAction Stop)
    If ($printers.count -gt 0) {
    ForEach ($printer in $printers) {
    Write-Verbose ("{0}: Replacing with new print server name: {1}" -f $Printer.Name,$newPrintServer)
    $newPrinter = $printer.Name -replace "Server1",$newPrintServer
    $returnValue = ([wmiclass]"Win32_Printer").AddPrinterConnection($newPrinter).ReturnValue
    If ($returnValue -eq 0) {
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    $newPrinter,
    $returnValue,
    (Get-Date),
    "Added Printer" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    Write-Verbose ("{0}: Removing" -f $printer.name)
    $printer.Delete()
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    $printer.Name,
    $returnValue,
    (Get-Date),
    "Removed Printer" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    } Else {
    Write-Verbose ("{0} returned error code: {1}" -f $newPrinter,$returnValue) -Verbose
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    $newPrinter,
    $returnValue,
    (Get-Date),
    "Error Adding Printer" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    } Catch {
    "{0},{1},{2},{3},{4},{5}" -f $Env:COMPUTERNAME,
    $env:USERNAME,
    "WMIERROR",
    $_.Exception.Message,
    (Get-Date),
    "Error Querying Printers" | Out-File -FilePath $PrinterLog -Append -Encoding ASCII
    Quote from:
    Use a PowerShell Logon Script To Update Printer Mappings
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Monitor Print Queue with java program

    I'm plan to write a client/server based application which control the printing for every user. I've no idea how to start on the application.
    1. Is it possible to monitor the print queue or print job using java application?
    2. How does the server react if the client sending the print job to there? How's the client can trigger the signal during printing and send to the server?
    Thank you!

    I'm plan to write a client/server based application
    which control the printing for every user. I've no
    idea how to start on the application.You should establish feasibility first, before planning to write anything
    1. Is it possible to monitor the print queue or print
    job using java application?Not really. Print queues are highly system-dependent things and some e.g. Windows can really only be accessed via system calls in a native language.
    2. How does the server react if the client sending
    the print job to there?Err, it prints the file?
    How's the client can trigger the signal during printing and send to the server? What signal?
    But I suspect the answer to the first question makes the others irrelevant.

  • Print Queue stops jobs - help?

    *One day I could print pdfs and the next I couldn't!*
    I'm using Acrobat 7.0 Professional and everytime I try to print a pdf, from any programme, the Print Queue begins to print my file, it says opening Distiller and then the Print Queue stops, just like that! No reasons.
    I have reinstalled Acrobat having first uninstalled it from the disc, this hasn't solved my problem.
    I have repaired permissions, no solution here.
    I have run Printer Setup Repair by Fixamac and that's not helped.
    I have reset the printing system in Printer setup utility - still no help.
    I have reinstalled the OS system from the original discs and still I cannot get the printer queue to print the job!
    I have a Canon Pro 9000 printer and I can print perfectly well to that.
    PLEASE can someone help me???
    I've wasted half a day on this and have got nowhere.

    The log shows that the first process to have trouble is the backend (transport) process "pdf700", which is the PDF distiller installed by Adobe Acrobat 7. I believe the rest of the errors are related to this process failing.
    You mentioned that you deleted Acrobat, however I believe that this file may not have been deleted, or overwritten with the new installation. So I would run the the Acrobat Uninstaller and then check if this file gets left behind. If it does, then you can try manually removing this file.
    You can see that the file is located in /usr/libexec/cups/backend. You can use the Finder to navigate to the folder. With a Finder window open, select Go > Go to Folder and then type that path above. This will open the backend folder where you will see the pdf700 file. Now, before you can delete it, you will need to change ownership from system to your account. Do a Get Info on the file (Cmd I) and in the new window, expand 'Ownership and Permissions'. You will see you have read-only rights. If you expand Details, then you will see that System is the owner. Next to this is a lock. If you click this you will be prompted for the administrators account/password. After entering this, you can change the owner to your account and then close the Get Info window. Now you will be able to delete the pdf700 file.
    With the file removed, you can install Acrobat 7.x again. Of course, if the uninstaller does remove this file, then everything I mentioned above won't be required and of no help. I then recommend you check the Acrobat forums on Adobe's web site to see if there is any fixes mentioned there...

  • Monitor Print Queue

    What would be the best way to monitor print jobs, and pause them? After pausing them I want to ask for user credentials before resuming the print job.
    Brandon Donnelson
    print-track.sourceforge.net

    Something in one of the native programming languages on the operating system you had in mind.

  • TA22258 Why is the print queue showing jobs not sent?

    My print queue continues to have jobs pop up that I do not send to the printer. It is then causing my print queue to pause. Why is this happening?

    Hello wiggo83,
    I recommend following the steps in the article below to resolve issues with printing from your Mac:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Printing queue for HP Photosmart 2400xi

    I have an HP Pavilion printer and I need to delete some scheduled printing.  How do I locate the printing queue???
    Message Edited by lvnv on 02-18-2009 02:32 PM

    Attached is a link to the list of supported HP printers.  I see the C310, but not the C309.  Are you sure the C309 is supported?
    http://support.apple.com/kb/HT4356

  • How can I create more than one printer queue for a printer

    I would like to have more than one "default" setting for my printer.  This is so I can use a 3rd party print utility (fingerprint) to print to a non-airprint printer from my ipad.  The utility prints using the default configuration.  I don't need to get fancy here.  Just "draft B&W' , "normal", and "Color best quality".  If I need something else, I can always email the document to my MacBook.  The utility has something about a virtual printer, but all I could find about that is that it is used for PDF printing and maybe a workflow.
    My technology level:  Used to be a programmer,  after a decade of retirement, I can't even program an applescript today.

    Take a look at this add-on.
    https://addons.mozilla.org/en-US/thunderbird/addon/signature-switch/

  • Message "waiting for job to complete..." for printing

    Hello,
    I have a printer installed on Windows Server 2008 R2, shared for a
    windows 7 computer (OK), and a Macbook Air 10.8.3. m.lyon. (KO) is installed and configured correctly. HP Deskjet 3940.
    But in the MacBook when I print any document send the form to the
    Windows tail, and appears well in line, even tells me not just printing but printing ever, life is printing but printing out the document, including the correct printer makes noise as to be printed but nothing .
    On the MacBook print queue the message remains "printing: waiting for job to complete ..." and never complete.
    I install the printer on the Windows icon in Printers & Scanners for smb
    for the default printer and the result is always the same.
    Connect the printer directly to a USB port on the MacBook to try and charge good drivers and printed the first ....
    I need help, can you help,
    thanks,
    Joan.

    I solved this as follows....
    Go to the Windows computer.
    Open printers and select the printer
    Go to Customize your printer
    Go to ports
    Disable "Enable Birectional Support" in the Ports
    Sounds crazy, but it worked.
    Good luck, YMMV.

  • Jobs show twice in print queue - won't delete and won't print

    I have an HP Laserjet P1006 running on a HP laptop running Windows 7 64 bit.  Printer has worked fine for 8 months but recently ran into problems. 
    When I send a print job to it, the printer doesn't print.  If I open up the print queue, the job shows up twice.  If I try to delete the jobs, they don't delete.  I can use the HP Print Diagnostic Utility to get the jobs cleared out of the queue, but the same thing happens the next time I try to print something. 
    A Few Other Items to Note:
    - I don't get any error lights on the printer. 
    - I brought home a laptop from home running XP and installed the printer using the CD.  The printer worked fine with that computer, so I don't think it's a problem with the printer hardware.
    - I have tried uninstalling the printer, both using the CD that came with it and with the latest drivers/software from the website.  Didn't do anything (same problem occurs when printing a test page).
    - HP Print Diagnostic Utility doesn't find anything wrong.  Likewise, if I right click on the printer and click Troubleshoot, that doesn't help either.
    - I've tried restarting the print spooler, but that didn't do anything. 

    Hard Reset – While printer is powered ON, pull the power cord from the printer then from the wall. After 30 seconds reconnect power to wall and printer. This will trigger a ‘dirty power up’ and restore the printer to a known good condition (if it is possible). No user settings are lost with a ‘hard reset’.
    This ‘Hard Reset’ is one of the most powerful tools to use when the printer hardware is not functioning properly!
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • Print Queue Status Monitor with Email

    I have a brand new Windows Server 2012 R2 Datacenter virtual server that is setup as a print server.  I saw the custom filters in the Print Management console but found out that notifications only work with that console open.  Since I'm not logged
    into that machine all the time, I need a powershell script that can do what the custom filters do in the Print Management console.  Here's what I'm looking for:
    1. When the print server starts the script starts.  This script should always stay active.
    2. The script polls the print queues for a change in status to anything other than Ready every 5 minutes or so.
    3. If the printer name contains "CC2", then email certain people the status of that particular printer.  Only email them once so as to not spam them with constant emails (maybe 1 email per day per status change).
    So basically I'm looking to email my customer service department if one of their printers goes to a status of anything other than Ready.  Is something like this possible with Powershell?

    My scripts compares the customer service printers (printer names starting with CC2) status every 5 minutes.  If the status has changed and there are Offline printers then customer service gets an email.  I'm using Task Scheduler to start the script
    at 6:00am every day and the script will quit around 11:00pm.  It's not very elegant but it will get the job done.  Thanks for all your help!
    # Time limit when the script expires
    $Limit = (Get-Date).AddDays(1)
    $SleepSeconds = 300
    $PreviousStatus = @()
    while ((Get-Date) -lt $Limit)
    $CurrentStatus = Get-Printer -computername SERVER | Where {($_.PrinterStatus -ne "Normal") -and ($_.Name -Match "CC2")} | Select Name,PrinterStatus
    if ($CurrentStatus)
    if (Compare-Object $CurrentStatus $PreviousStatus -property Name,PrinterStatus)
    # Establish Connection to SMTP server
    $a = "<style>"
    $a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
    $a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;}"
    $a = $a + "TD{border-width: 1px;padding: 0px;border-style: solid;border-color: black;}"
    $a = $a + "</style>"
    $filedate = get-date
    $smtpserver = “smtp.gmail.com”
    $msg = new-object Net.Mail.MailMessage
    $smtp = new-object Net.Mail.SmtpClient($smtpServer )
    $smtp.EnableSsl = $True
    $smtp.Credentials = New-Object System.Net.NetworkCredential(“[email protected]”, “password”); # Put username without the @GMAIL.com or – @gmail.com
    $msg.IsBodyHtml = $True
    $msg.From = “[email protected]
    $msg.To.Add(”[email protected]”)
    $msg.To.Add(”[email protected]”)
    $msg.To.Add(”[email protected]”)
    $msg.To.Add(”[email protected]”)
    $msg.To.Add("[email protected]")
    $msg.Subject = "Printer Status Errors $($filedate)"
    $msg.Body = Write-Output -InputObject (Get-Printer -computername SERVER | Where {($_.PrinterStatus -ne "Normal") -and ($_.Name -Match "CC2")} | Select Name,PrinterStatus,Comment,Location,Portname) | ConvertTo-Html -Head $a
    $smtp.Send($msg)
    $PreviousStatus = $CurrentStatus
    Start-Sleep -Seconds $SleepSeconds
    if ((get-date).Hour -eq 23) {Exit}

  • Unable to print to Windows Queue for HP p1606

    So we have a windows 2003 server which has a printer queue for a HP p1606n.
    We can print direct DNS to the printer however not to the print queue. The print queue and windows machines attached to the queue can print fine.
    The jobs get to the queue and then disappear into the ether.
    What we've tried:
    Generic PS and PCL driver on the queue and printing computer
    Model Specific driver on both.
    Varying the model specific driver and the generics on each.
    trying the foo2 driver specific for the 1606.
    All do the same thing which is show the authentication window for the job and then we see it in the local machine queue and the nothing at the printer.
    We are stumped at this point.
    Any help appreciated.

    Hi @moports,
    Welcome to the HP Forums!
    I noticed that you are unable to print with your HP Photosmart 5520, on Windows 7 using a wireless connection. I am happy to help with your printing!
    Please see the following guides:
    'Printer is offline' Message Displays on the Computer and the Printer Does Not Print: Windows 7.
    Printer Does Not Maintain Wireless Connection.
    Also I would recommend the HP Wireless printing center, website. You want to make sure the router is broadcasting at 2.4 ghz not 5 ghz.
    This post, Incoming and Outgoing Printer Ports, by @VisionAiry. Will tell you which ports need to be open not closed on the router.
    Hope this information helps, and have a great day!   
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Printer proxy problem? 300 jobs in my print queue.

    I left my MacBook Pro on overnight. When I 'woke it up' about 24 hours later, I found that I had 303 documents in my print queue for my HP LaserJet 1320. Printer proxy has quit upon awakening in several instances before. This is the first time the queue has 'completed' printing of documents. Some of the documents were sensitive. Do you think my security/ID has been compromised?

    “Windows Server Print Services 2012 Printer Queue” target is a part of  Windows Server Print management
    pack which is useful for collecting the print queue information.
    The Base windows MP wont be able to do this.

Maybe you are looking for

  • .PAR itself not included in BP?

    Hi, I have a .par archive containing a Portal Component (iView) of 1,101,962 bytes. I have uploaded this archive to the portal and I can test it fine. Next I created a Transport Package (Business Package) adding an 'iView from PAR' to it. When I expo

  • Windows 2012 Group Policy

    I have Win Server 2012 R2 domain Controller and want to disable the internet access for the domain users through group policy. I tried to find the solution in web, but not getting proper information and unable to find the proxy option in GP. Please l

  • How to show one album art image for a compilation album in cover flow view?

    I just finished getting album art for my entire music collection. Now I go to the Cover Flow view or the Album view and individual songs in compilation albums each have their own album art instead of being grouped together under the same album art. F

  • I updated my macbook to lion and now have issues. should i downgrade to lion?

    i updated my macbook to lion and now have issues. should i downgrade to lion? they are; 1. my sound sometimes mutes it self (sound control grayed out) or it switches rapidly from interior speakers to headphones. 2. i keep getting "session time out" a

  • RMAN with 10g grid contorl

    Hi All, Did anyone check how RMAN work in 10g grid control? I have RMAN in 9i EM so just curious.