Attempting to write Applescript to create network print queues

I work for a university in the U.S. and I am attempting to create an Apple Script that will be used to add network printers to over 500 Macs. As part of the setup script, I need to be able to retrieve the user's Windows domain login, which may or may not be same as their local login (that's an entirely separate project), and I will need to ask the user for a name of the nearest printer to them.
I successfully created a bash shell script that does the job, but management would like for the interface to be 'cleaner' and don't want to have users go to a terminal to run the printer setup. I've managed to translate some of the shell script to Apple script, and what I've got so far makes the login and printer information retrieval 'cleaner'. Unfortunately, I'm not sure how to finish the rest of it in order for me to setup the print queues using the data gathered during the set part of the script.
Here is the shell script:
#!/bin/bash
#get login from user
echo "Type your network login:"
read login
stty_orig='stty -g'
echo "Enter the name of a nearby Canon Printer:"
read canonprint
#add the print queues
echo "Adding unsecured Canon print queue"
lpadmin -p CanonPrint -v lpd://$login@printserver/$canonprint -P /Library/Printers/PPDs/Contents/Resources/CNMCIRAC5250S2.ppd.gz -E
echo "Adding secured Canon print queue"
lpadmin -p CanonPrintSecure -v lpd://$login@printserver/CanonPrint-Secure -P /Library/Printers/PPDs/Contents/Resources/CNMCIRAC5250S2.ppd.gz -E
exit 0
So far, I've got this much written up in Apple Script:
set Login to ""
set CanonPrint to ""
set dialog_1 to display dialog "Enter your login" default answer "" buttons {"OK"} default button 1
set dialog_2 to display dialog "Enter the name of a nearby Canon printer" default answer "" buttons {"OK"} default button 1
set SUNetID to the text returned of dialog_1
set CanonPrint to the text returned of dialog_2
Any help would be greatly appreciated!

Use do shell script
set nLogin to text returned of (display dialog "Please enter network login" with icon note default answer "" with title "Network login" with hidden answer)
set CanonPrint to text returned of (display dialog "Enter the name of a nearby Canon Printer" with icon note default answer "" with title "Canon Printer")
set stty_orig to do shell script "stty_orig -g"
do shell script "lpadmin -p" & space & CanonPrint & space & "-v lpd://$login@printserver/$canonprint -P /Library/Printers/PPDs/Contents/Resources/CNMCIRAC5250S2.ppd.gz -E"

Similar Messages

  • I hope it's Kappy reading this. My HP Laserjet successfully installed but can't create a print queue...

    Hello Kappy - Thank you for persevering with my printer issues. Firstly, I use Firefox, recently updated & as yet have not discovered how to monitor downloads. The software for HP Laserjet 2200 was eventually automaticallly, and therefore correctly, installed.The Add Printer Pane accessed via the + button in the Printer & Scanner window is blank - the Name & Location and Print Using & Add areas are all grayed out, therefore I can't locate the printer driver even though it is in the Printer folder. I messed around with HP Direct Protocol & Line Daemon functions, entering my IP address, just to see if I could locate the printer driver - I could. However, I get a pop-up window which says 'Unable to verify the printer on your network' but it gives me the option of going ahead anyway, which I did. I was able to create a print queue, able to give a print command, the printer window opens, but the printer appears as 'busy', but of course it's not printing. To look at the issue from another perspective: previously I was running 10.5.8 on my old Power Mac G5 and a week before I shifted over the iMac I paused the printer but when tried to resume printing I got a pop-up message saying IPadmin > enter administrator name + password. Which of course I couldn't do - I discovered this was a bug afflicting10.5 & 10.6 operating systems; the only way I could get around it was by re-creating myself as a new administrator, which I did, and got the printer going again. So, if I have a "Network" printer perhaps there's another route to get the driver recognized... What do you think?
    Alex Carr

    Morning Alexander Carr,
    Thanks for using Apple Support Communities.
    Use this article to troubleshoot printer issues in OS X.
    For more information on this, take a look at this article:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Best of luck,
    Mario

  • Can't create a print queue on OS 10.7 via HP driver installed by Apple

    I've ust bought a reconditioned iMac and am getting applications up and running, but I'm unable to get my HP Laserjet 2200DN printer working. The Add Printer pane (Print & Scan Preferences) remains blank: Name & Location and Print Using & Add areas are all grayed out, therefore I can't locate the printer driver even though it has been installed in the Printer folder. I've messed around with HP Direct Protocol & Line Daemon functions, entering my IP address, just to see if the printer driver could be located - it could. However, I get a pop-up window which says 'Unable to verify the printer on your network' but it gives me the option of going ahead anyway, which I did. I was able to create a print queue, able to give a print command, the printer window opens, but the printer is  'busy', but of course it hasn't been given the command to print  anything.  Any ideas?
    Alex Car

    Morning Alexander Carr,
    Thanks for using Apple Support Communities.
    Use this article to troubleshoot printer issues in OS X.
    For more information on this, take a look at this article:
    Troubleshooting printer issues in OS X
    http://support.apple.com/kb/ts3147
    Best of luck,
    Mario

  • Changeing preferences on network printer queue with Powershell

    Hi,
    I found a script on this page - http://gallery.technet.microsoft.com/scriptcenter/878e6bac-e2a1-4502-9333-5b1420f8b957 - that I am trying to adapt to work on my users computers and not only on servers. But I can't seem to figure out how to get a reference
    to the network attached printers and change their preferences on the computer, the script only get the local ones.
    The goal is to use only a portion of the script as a logon script for some users that need onesided printing as default.
    param ($ChangeProp)
    $host.Runspace.ThreadOptions = "ReuseThread"
    Add-Type -AssemblyName System.Printing
    $permissions = [System.Printing.PrintSystemDesiredAccess]::AdministrateServer
    $queueperms = [System.Printing.PrintSystemDesiredAccess]::AdministratePrinter
    $server = new-object System.Printing.PrintServer -argumentList $permissions
    $queues = $server.GetPrintQueues()
    function SetProp($capability, $property, $enumeration)
    if ($PrintCaps.$capability.Contains($property))
    $q2.DefaultPrintTicket.$enumeration = $property
    $q2.commit()
    write-host ($q.Name +" is now configured for " + $property)
    write-host (" ")
    else
    write-host ($q.Name +" does not support " + $property)
    write-host (" ")
    try {
    foreach ($q in $queues)
    #Get edit Permissions on the Queue
    $q2 = new-object System.Printing.PrintQueue -argumentList $server,$q.Name,1,$queueperms
    # Get Capabilities Object for the Print Queue
    $PrintCaps = $q2.GetPrintCapabilities()
    switch ($ChangeProp)
    {$_ -eq "twosided"}
    SetProp DuplexingCapability TwoSidedLongEdge Duplexing
    break
    {$_ -eq "onesided"}
    SetProp DuplexingCapability onesided Duplexing
    break
    {$_ -eq "mono"}
    SetProp OutputColorCapability monochrome OutputColor
    break
    {$_ -eq "color"}
    SetProp OutputColorCapability color OutputColor
    break
    {$_ -eq "staple"}
    SetProp StaplingCapability StapleTopLeft Stapling
    break
    {$_ -eq "show"}
    $DefaultTicket = $q2.DefaultPrintTicket
    $TicketProps = $DefaultTicket | Get-Member -MemberType Property
    write-host (" ")
    write-host ($q.name)
    foreach ($p in $TicketProps)
    $PName = $p.name
    $PropValue = $DefaultTicket.$PName
    write-host ($p.name + " = " + $PropValue)
    default
    Write-Host ("$_ is not a valid parameter")
    exit
    catch [System.Management.Automation.RuntimeException]
    write-host ("Exception: " + $_.Exception.GetType().FullName)
    write-host $_.Exception.Message

    Ok, I want to run this (some...) script on a users computer, not on a server, to be able to change their printer preferences. In this case, a network attached printer with duplex default from the server would get simplex as default.
    We don't want to set up different queues on the server for different default settings. That's why we are trying with a script.
    Running your script against my computer gets me (trimmed down a bit):
    Get-ServerQueues -server it228d
    InPartialTrust : False
    ClientPrintSchemaVersion : 1
    IsXpsDevice :
    IsPublished : False
    IsRawOnlyEnabled : False
    IsBidiEnabled : False
    ScheduleCompletedJobsFirst : True
    KeepPrintedJobs : False
    IsDevQueryEnabled : False
    IsHidden : False
    IsShared : False
    IsDirect : False
    IsQueued : False
    QueueAttributes : 528
    QueueStatus :
    FullName : \\it228d\Skicka till OneNote 2010
    HostingPrintServer : System.Printing.PrintServer
    QueuePrintProcessor : System.Printing.PrintProcessor
    QueuePort : System.Printing.PrintPort
    QueueDriver : System.Printing.PrintDriver
    DefaultPrintTicket :
    UserPrintTicket :
    SeparatorFile :
    Description : \\it228d\Skicka till OneNote 2010,Send To Microsoft OneNote 2010 Driv
    er,
    Location :
    Comment :
    ShareName :
    NumberOfJobs :
    AveragePagesPerMinute :
    UntilTimeOfDay : 60
    StartTimeOfDay : 60
    DefaultPriority :
    Name : Skicka till OneNote 2010
    Priority : 1
    CurrentJobSettings :
    PrintingIsCancelled : False
    Parent :
    PropertiesCollection : {UserPrintTicket, IsXpsEnabled, Description, Name...}
    InPartialTrust : False
    ClientPrintSchemaVersion : 1
    IsXpsDevice : False
    IsPublished : False
    HasToner : True
    IsTonerLow : False
    IsWarmingUp : False
    IsInitializing : False
    IsProcessing : False
    IsWaiting : False
    IsNotAvailable : False
    IsOutputBinFull : False
    IsPrinting : False
    IsBusy : False
    IsIOActive : False
    IsOffline : False
    HasPaperProblem : False
    IsManualFeedRequired : False
    IsOutOfPaper : False
    IsPaperJammed : False
    IsPendingDeletion : False
    IsInError : False
    IsPaused : False
    QueueAttributes : 16
    QueueStatus : None
    FullName : \\it228d\PDFCreator
    HostingPrintServer : System.Printing.PrintServer
    QueuePrintProcessor : System.Printing.PrintProcessor
    QueuePort : System.Printing.PrintPort
    QueueDriver : System.Printing.PrintDriver
    DefaultPrintTicket : System.Printing.PrintTicket
    UserPrintTicket : System.Printing.PrintTicket
    SeparatorFile :
    Description : \\it228d\PDFCreator,PDFCreator,
    Location :
    Comment : eDoc Printer
    ShareName : PDFCreator
    NumberOfJobs : 0
    AveragePagesPerMinute : 0
    UntilTimeOfDay : 60
    StartTimeOfDay : 60
    DefaultPriority : 1
    Name : PDFCreator
    Priority : 1
    CurrentJobSettings : System.Printing.PrintJobSettings
    PrintingIsCancelled : False
    Parent :
    PropertiesCollection : {UserPrintTicket, IsXpsEnabled, Description, Name...}
    InPartialTrust : False
    ClientPrintSchemaVersion : 1
    IsXpsDevice : False
    IsPublished : False
    IsRawOnlyEnabled : False
    IsBidiEnabled : False
    ScheduleCompletedJobsFirst : True
    KeepPrintedJobs : False
    IsDevQueryEnabled : False
    IsPendingDeletion : False
    IsInError : False
    IsPaused : False
    QueueAttributes : 528
    QueueStatus : None
    FullName : \\it228d\Microsoft XPS Document Writer
    HostingPrintServer : System.Printing.PrintServer
    QueuePrintProcessor : System.Printing.PrintProcessor
    QueuePort : System.Printing.PrintPort
    QueueDriver : System.Printing.PrintDriver
    DefaultPrintTicket : System.Printing.PrintTicket
    UserPrintTicket : System.Printing.PrintTicket
    SeparatorFile :
    Description : \\it228d\Microsoft XPS Document Writer,Microsoft XPS Document Writer,
    Location :
    Comment :
    ShareName :
    NumberOfJobs : 0
    AveragePagesPerMinute : 0
    UntilTimeOfDay : 60
    StartTimeOfDay : 60
    DefaultPriority : 0
    Name : Microsoft XPS Document Writer
    Priority : 1
    CurrentJobSettings : System.Printing.PrintJobSettings
    PrintingIsCancelled : False
    Parent :
    PropertiesCollection : {UserPrintTicket, IsXpsEnabled, Description, Name...}
    But on my computer I have four network printers that is not listed. And those are the ones I want to change the preferences on. Is there a way to do this?

  • Printing multiple copies of a document on a remote network printer queue

    Hello,
    We have migrated our main production instance (ECC6) from HP-UX to AIX 6.1, went live on monday.
    Printers are defined like this:
    SAP prints to the local operating system (C)
    Local print queues are defined which point to remote printers still currently located on a HP UX server. Nothing was changed on this one.
    Now since the migration on AIX, the parameter for multiple copies of a document is ignored, if we select for example 4 copies on the SAP print screen, only 1 copy is printed. It worked perfectly fine when the instance was on HP UX.
    Seems that the lp command on AIX does not pass the optional parameters when printing on a remote printer (was acknowledged by AIX support), and if we issue manually on AIX a lp command with parameter -n2 for example, only one copy is indeed printed.
    I wonder if there is a simple workaround to this problem since it must be quite common? I didn't find anything here or in the Sap notes.
    Thanks.

    Thanks, but the idea is to get it to work without additional products since it worked fine under HP UX.
    Seems the AIX administrator has found a workaround with modifying the queue definitions in qconfig, to be BSD style... tests in progress

  • Photosmart C6280 stopped responding to network printing queue

    photosmart C6280 connected to network with ethernet cable -- print jobs stuck in queue and printer does not respond.
    Suggestions?

    JoeRiley wrote:
    boykot wrote:
    to remove the print jobs stuck on qeue, go to the printers and faxes
    double click on the printer driver
    a window will come up
    click on printer button
    click cancel all documents
    you might also need to restart the printer spooler
    to do that, click on start
    click run
    type services.msc
    look for print spooler and right click on it and click restart
    Good Luck!!!
    keep me informed please...
    Re-spooling sounds a  good idea, but I have Vista Home premium on my PC, and clicking on 'Start' doesn't yield a 'Run' option, so I don't seem to  have an option to type in ''services.msc" .  Grateful for any suggestions.
    Well you should see a Search box at the bottom of the Start menu. It acts like the Run box. You can type 'services.msc' or simply 'Services' in it. Or, you can also press the Win + R keys to bring up the Run window.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • Network Printer Setup in Solaris 10

    What is the best way to set up HP JetDirect network printers in Solaris 10? I have just installed Solaris 10 on an Ultra Sparc 10. There are two HP Laserjet Printers (HP LJ 4100DTN and HP LJ 4000TN) with JetDirect cards on my network. I want to be able to print to either of these printers and to choose which paper tray to use for the job (and whether to print double sided on the duplex model). There are reams of conflicting instructions on the Sun website and on the HP website for this task, most referring to older Solaris versions. Do I use the lpadmin command, setting up a different printer_name for each option for each printer? If so, where are the printer definitions? Do I use use the HP JetDirect Printer Installer? If so, where is it or how do I get it and is there a version for Solaris 10? Or is there an "add printer wizard" in the Java desktop that works for HP JetDirect laserjet printers? If so, where is it and where are the instructions for using it? Or is there some other method? Thanks.

    I found the HP JetDirect Printer Installer for UNIX on the HP website. The version is E.10.34, dated 5 Aug 2002. The HP site says it is for Solaris 2.6, 7, 8, and 9. Should this installer be used with Solaris 10?
    Alice Soteriou, in a Dec. 2001 article ("Basic Principles of Printing in Solaris 2.6 and Above") on the Sun website says, "Sun's position on this is to always use the vendor-supplied application to create the print queues. This is because it will probably supply the exact interface file to make the most of your printer's features (that is, duplexors, multiple trays, different font sizes and styles, etc.)" However, elsewhere on the Sun site, there are warnings against using such applications for security reasons and comments that the HP JetDirect Print Installer is not supported. What is Sun's current advice on this?
    Alice's 2001 article has been reproduced as postings on supportforum.sun and sunsolve.sun.com with dates in January and February of 2005, but these repostings do not address using this application with Solaris 10.

  • Installing network printer and downloaded print drivers aren't recognized.

    I downloaded drivers for the Canon ImagePRESS C1 and they seem to install just fine. However, when I install the network printer the driver is not listed anywhere. Even when I choose "Other" and point to the device folder the files are greyed out, and I can't select the driver. I've tried updates and resetting the print system an still no success. Any help would be greatly appreciated.
    drh08

    There are three printer options (at least here in Oz there is) available for the imagePRESS C1. There is the internal Canon printer board and two external print controllers - the imagePASS-T1 and the imagePRESS-Q1, which is what we have connected to our C1. Each of these print controllers have different drivers so you need to determine which one you have first. If you are not sure, then check with someone or have a look at the C1. If it has a white metal box hanging on the back of the copier with some network cables, then you have the T1. If there is a PC case connected to the copier then you have the Q1. If the network cable connects from the wall straight to a network card on the back left side of the machine, then you have the internal Canon board.
    For the two imagePASS controllers, you can download the driver from the print controller, by opening its internal web page (type the copiers IP address into your web browser to access). These queues for these drivers are added via IP > HP Jetdirect-Socket and you should find the driver by searching for either T1 or C1 in the Print using menu.
    If you have the Canon board, then how you create the printer queue depends on which driver you have downloaded. Could you tell me the driver name and version so I can explain the method of adding the printer queue.
    PaHu

  • Network printer permanently 'paused'

    I have a Brother HL-5350DN network printer on my home network and it works perfectly with my 2 x iMACs. I have recently acquired a MacBook Air and tried to install the driver but as soon as I try to print to it from the Air, the printer 'pauses'. Does anyone know what is causing this or a way around it?
    All Macs are on the same (latest) version of Snow Leopard.
    Regards
    stindig

    The printer pausing can be a result of the protocol you selected when creating the printer queue. On one iMac that is working, open Print & Fax, select the printer and then open Options & Supplies. Under the General tab will be the path used to connect to the printer (in the URL section). Make a note of this and then check the printer queue on the Air. If they are not the same then remove this queue and add the printer again.
    If they are the same, then you try connecting the Air directly to the printer just to test that the installed driver does work.
    Pahu

  • How to create HP LaserJet 2420 printer queue on Solaris 10

    Hi Solaris Gurus,
    I am having difficulty creating a printer queue for HP LaserJet 2420 on Solaris 10 (11/9) Sparc (Sun Fire T5220) server. A popular method used is with hppi (HP Jet Direct) tool but it does not have the exact printer driver and alternative printer drivers (e.g. HP LaserJet 4 / 4M, HP LaserJet 2000 series) resulted in only part of the text occupying the wrong side of an A5 page.
    An alternative approach that has worked in the past for simple default paper tray 2 (single paper tray), with tray 1 reserved for manual feed. This method involves creating a working printer queue on a Windows workstation (XP) / server (2000) with the correct driver and having configured to support Unix printing to receive LPR request from Unix systems in general. A remote printer queue would then be defined on Solaris 10 system which points to the Windows system. However, the printing jobs kept going to tray 1 (top manual feed) even though the Windows printer queue was configured to go to tray 3 (bottom tray).
    The earlier method would be simplest but needs the right driver (PDD) but I don’t know where to find it. The latter approach is also not working despite having got the right driver on Windows. A test page on the target Windows printer queue would print to tray 3 (bottom tray) of the printer correctly.
    Printmgr does not work well with HP printers from experience. It is good for serial and local printers.
    Your advice would be much appreciated.
    Thanks,
    Crystal

    Hi Giogio, and welcome to the HP Forums.
    I am sorry to be the bearer of this news, but do the age of the printer, it is not supported by Mac OS X 10.9. I am including a list below of the supported printers from Apple:
    OS X: Printer and scanner software available for download.
    For more information, I would recommend contacting the Apple Support Communities.
    Thank you for posting on the HP Forums.
    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" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Rights needed to manage and create print queues

    On a Netware 5.1 install with eDir 8733, what rights would I need to give a
    user so that this person would be able to create new print queues, print
    servers, and print objects? This person is not an admin and I prefer not
    making him an admin equivalent if at all possible.
    Also, on a side note, how do I create a new print queue/server/printer
    without using HP Jet Admin for an HP printer? Has anyone done this with out
    Jet Admin?
    Thank you

    Oh, but how do I link them to the MAC of the printers NIC?
    Isn't that what HP JetAdmin did for me?
    Thanks
    "Peter Kuo" <[email protected]> wrote in message
    news:[email protected]..
    | Will wrote:
    |
    | > Also, on a side note, how do I create a new print queue/server/printer
    |
    | Just use NWAdmin ...
    |
    |
    | --
    |
    |
    | Peter
    | eDirectory Rules!

  • Printing w/Leopard & AD-based Windows Print Queues:

    For those interested, I have written an overview of printing in Leopard 10.5.0 to Windows print servers (published queues Active Directory). Your mileage may vary. This document contains the good the bad and the ugly.
    Objective:
    Get Leopard based Macs to print to AD published SMB print queues hosted on Windows 2003 print servers. Sounds easy, huh?
    Overview:
    Print Servers:
    Windows 2003 print servers.
    Printers:
    All the printers in my test were all new HP network b/w printers or network MFP b/w printers. All of them were less than 2 years old. None of them were consumer-grade home USB printers.
    Mac Clients:
    My test clients were Intel MacBook Pros and Intel iMacs running 10.5.0 Leopard. All of them had user AD accounts and all Macs were bound to AD using Directory Utility (or dsconfigad)
    The AD clients have a unique naming convention at my company. In my environment we use the initials of the person for their login name (SAM). Example:
    Real “human” Name: “Stephen Paul Jobs”
    Long Active Directory Name: “Steve Jobs”
    Short Active Directory Name: “spj”
    “Legacy” NT Names: “domain\spj”
    Full domain name (used for email etc): “[email protected]
    (you get the idea...)
    Note: My Mac clients are not in an Open Directory domain. No “Magic Triangle” in this environment. Pure AD for the sake of this example. I am not managing the Mac clients via MCX in this scenario.
    Print Protocols:
    All the print queues hosted on the print servers were standard SMB/CIFS print queues. The syntax (UNC) looks like this:
    smb://print_server.domain/queue
    (This syntax is invisible to most users printing to AD-published printers (or any network based printer really) . Most users will have no idea what protocols are being used.)
    Procedures:
    Part 1: Set up a new printer from an existing AD-published print queue:
    From the Apple menu select “System Preferences...” (or launch it from /Applications). The Printer Setup Utility app no longer exists. Apple has discontinued it fro various reasons.
    Click on the Printer & Fax pane.
    Click the “+” button on the left. This will launch the Apple Printer Browser (called “AddPrinter”, and lives in /System/Library/CoreServices), which looks similar to the previous browser in Tiger. The Printer Browser by default will usually show network printers vai Directory Services (AD/OD etc) as well as Bonjour printers and Mac OS X based shared printers – if they are shared via IPP and LPR under certain circumstances).
    Select the desired AD-published print queue you want to print to by highlighting it in the browser list and clicking the “Add” button. (Note: Print queues published via Active Directory will show up as “Open Directory” printers, even though this is not 100% technically correct.)
    Before the queue will be added, you will be prompted to authenticate as a local administrator. If you are not an admin you are screwed. Enter your name and password.
    Once the print queue is added, it will show up on your Mac in several ways (barring any bugs – see below). Here are the ways to tell if you have added the print queue successfully:
    A The new print queue will now be displayed in the Print & Fax system pref pane (but not always – see below).
    B You will see a printer proxy application in ~/Library/Printers/ which corresponds to your new print queue. This is the print monitor app that will show up in your Dock when you print to the queue.
    C You can see the new print queue via the CUPS admin page at http://localhost:631/printers.
    D You can see your new print queue from the Terminal by typing this command: “lpstat –v” (type “man lpstat” for more info on the lpstat and related commands)
    E You can also see your printers by launching an print-enabled application such as TextEdit or Safari and printing a page. You will be presented with Leopard’s new print dialog box (which now includes a print preview pane). From the “Printer” drop-down menu you can see all of your printers. You can add a printer from here too (which takes you to the steps listed above)
    (of course, most end users will only use option A listed above. The other options are more abstract and complicated)
    Now that the AD print queue has been setup on your Mac, you can print to it (maybe).
    Part 2: Printing to an AD-published print queue:
    Open a document you want to print.
    Choose “Page Setup...” from the File menu if you need to configure the job. (Optional)
    Choose “Print” from the File menu.
    From the Print dialog box, choose the desired print queue from the Printer menu
    Click the Print button.
    You will need to authenticate with a valid Active Directory username and password. You don’t have to have administrator credentials, but you have to verify that you are a domain member. In my environment, my Windows print server doesn't require authentication, but for some reason Leopard or CUPS makes you authenticate. (See below). Not only is this a major PIA, but the authentication dialog box itself is formatted to include the wrong credentials format for authentication in the first place.
    Volia! Done. Easy huh? Not really. Read on for the ugly stuff.
    My Complaints and Caveats:
    OK, so here’s where I vent, complain and scratch my head. Join in on the fun.
    Sometimes shared print queues don’t show up in the Print & Fax system preference pane after they have been added. I have no idea why. The local CUPS admin page (http://localhost:631) on my Mac test clients can see the connected queues, and the queues show up in ~/Library/Printers. The “lpstat –v” command shows the connect queues too. But for some reason, sometimes network print queues that I have previously setup (and use regularly) don’t show up in the Leopard Print & Fax preference pane. Local USB printers always show up fine for me.
    2. When challenged to authenticate a print job to a Windows print server (AD), the Mac’s authentication dialog box pre-populates the AD user’s name in the “Name” field incorrectly. Example:
    A user named “Joe Is Cool” (short name “JIC”) prints a job to the print server. The print auth dialog box challenges him for a name and password. It is pre-populated already with the name of “Cool, Joe”. When a valid AD password is entered, the job is rejected (it fails authentication and gets put on hold – which is hard to see this unless you explicitly look at the Printer.app proxy tool in the Dock). However, if the user replaces “Cool, Joe” with his official AD short name of “JIC” and then enters his AD password, the print job is accepted and printed. I wish Apple didn’t try and pre-populate the dialog box! Can this be avoided or prevented?
    In my environment, my Windows print server doesn't even require authentication, but for some reason Leopard or CUPS makes you authenticate. I’m working with my Windows administrators to figure this out. It will only accept user names with the short name format. It will not accept long (full) names or NT legacy names.
    3) The Printer Setup Utility app, which used to live in /Applications/Utilities, no longer exists. Apple has discontinued it for various reasons. Mainly security and simplicity. I wish it was still available, but the system pref pane works fine (well, usually)
    4) Active Directory-based print queues will show up in the OS X Printer Browser as “Open Directory” printers, even though this is not 100% technically correct. Why can’t OS X tell the difference between OD queues and AD queues and label them as such?
    5) Leopard has locked down the ability to add network printers. You now must be a local administrator in 10.5 or later. I understand the importance of this security measure in certain environments, but why can’t there be an option in the Security preference pane to “Allow non-admins to add printers”? This would make me very happy.
    6) Setting the default printer and resetting the CUPS system now require you to right-click in the left side of the Print & Fax pane. There no longer is a button or menu option to do this.
    7) Sometimes after a job has printed the printer proxy app (from ~/Library/Printers) stays in the Dock and won’t go away.
    Conclusion
    Please chime in on your experiences, bugs, opinions and comments.
    Message was edited by: Daniel Stranathan

    I have noticed several of the changes in our system when printing to an AD printer from a Leopard client. I have one issue that is pretty odd and I'm not sure what is going on. When printing an Excel worksheet, I get prompted for AD credentials. After submitting the job, the print queue says "Waiting for Authentication", I have to press the Resume button and then the authentication dialog pops up. I successfully authenticate (My auth dialog is populated correctly and the remember to keychain option is selected) and the job prints fine. If I print the same document again (without closing the worksheet or Excel), or any other worksheet, I still have to reauth. I can print just fine to the same printer from Textwriter and I do not need to authenticate. Weird...

  • Print Queue Will Not Retain Incomplete Jobs

    Occasionally when printing to a network device I get an EOF message and the file does not print. When printing from Quark 6 the file stays in the print queue and the status changes to "stopped". Interestingly however, when printing from Quark 7 and an EOF is encountered the file does not stay in the Held queue but rather goes to the Completed queue when it has not actually been printed. Does anyone know how to get around this? I've found that when this occurs it's generally just a matter of resending the queued file to the printer once more and everything works. But when a file drops into the completed queue I can't retrieve it which means reprinting the entire (really large) document.
    I've tried dragging the files from the Completed queue to another network print queue and then back again to the original printer. But this doesn't work either. Also tried saving Postscript files and then dragging them into the queue but this always leaves me with an EOF. No exceptions on the postscript file option (not sure about this, but suspect it's a topic for a different discussion thread).
    Thank you for any assistance you can offer.

    Hi,
    Thanks for the post.
    Here is something I need to confirm:
    1. Does this issue occur with other network printers?
    2. Does this issue occur when printing a text file?
    If this issue just occurs with HP LaserJet P4015n, it is caused by the specific printer driver.
    Now please perform the following steps to troubleshoot this issue.
    Clear spool file
    1. Stop the spooler by doing the following:
    a. Click Start , Settings , Control Panel , Administrative Tools , then Services .
    b. Scroll down the list of services for the Print Spooler.
    c. Right click Print Spooler and click Stop .
    2. Delete the spool files
    a. Open My Computer.
    b. Go to C:\WINDOWS\system32\spool\PRINTERS\ .
    c. Delete all of the files inside of this folder.
    3. Restart the spooler.
    a. Click Start , Settings , Control Panel , Administrative Tools , then Services
    b. Scroll down the list of services for the Print Spooler.
    c. Right click the Print Spooler and click Start.
    Change the spooling format
    Set the spooling format to RAW, and then try to print directly to the printer instead of spooling the print job. To do this:
              a.       Click "Start", point to "Settings", and then click "Printers".
              b.       Right-click the printer that you are using, and then click "Properties".
              c.       In the Advanced tab, click "Print Processor".
              d.       Set the default "Data type" to "RAW" for both "WinPrint" and "ModPrint".
              f.        Click "OK", click "OK" again, and then close the Printers dialog box.
    Does it work?
    Hope this helps.
    Miles
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Solaris Print Queue

    Dears,
    I cannot cancel some old print jobs from a solaris 9 machine, giving the following error.
    root@srvr1 # cancel LLCPRN-55243
    cannot dequeue LLCPRN-55243
    Does it mean that print queue corrupted?
    Please advice me in this regard.
    Thanks,
    Sal.

    Hi,
    You can use lpadm.
    A Basic Network Printer Queue
    # lpadmin -p hp5 -o protocol=bsd,dest=10.0.0.10 -v /dev/null -m netstandard -T unknown -I any
    # enable hp5
    # accept hp5
    null

  • Applications crash when attempting to use network printer

    I just upgraded to Tiger. Now, all applications crash when I attempt to select my network printer (HP laserjet 4600) from the 'File' ->'Print' menu. If the network printer is selected as my default printer, the program closes before the print menu even comes up. However, I can print to this printer if it is my default printer and I use the print icon instead of 'File'->'Print'. I also have a USB printer (Lexmark) which I can print to no problem. I can print to all printers with no problems from Classic applications, and I had no problems printing from either Classic or OS X before upgrading to Tiger. Anyone have any ideas?
    Faris

    Did you run Disk Utility> Repair Permissions after installing the HP driver software? While Repair Permissions may no longer be a useful as it was as a generic troubleshooting step under OS X 10.2.x, it's still essential if you have any third-party software that requires an administrative password to install, especially HP or Adobe software, which are known to trample around placing files with mis-set permissions all over the place.

Maybe you are looking for

  • How to generate a Yearly report based on a calculation at the Month level

    Have the need to create a report as follows. Any ideas on how this can be accomplished in OBI is appreciated. I have already tried different ways but non worked for me. The data is stored in a table at day level as follows: Day Amount_A Amouont_B 1/1

  • Upgrade on iMac

    Dear All, I have been trying to upgrade my iMac with Leopard, but every time I place the Full Leopard DVD in my iMac it just sticks and never installs. My system also meets the requirements for Leopard bust just won't install...HELP required. The iMa

  • IPhoto fix that worked for me (Coregraphics & Adobe Color Profiles issues)

    Ok, I posted a few days back in reference to getting help with my iPhoto. I do apologize on the fact this is quite the long post but maybe it will be easy to understand for those who are like me and not all that computer literate. I searched all the

  • How can i reduce the number of calls archived in recents

    How can i reduce the number of calls archived in recents

  • ICloud Keychain code changed in iOS8?

    While installing iOS8 I received an iCloud Keychain Verification Code different from the one given a year or two ago. This one is six instead of four characters. I had no warning and am left questioning whether this was an intentional change resultin