I am trying to find a way to automate adding a printer code to a Canon driver (various models). Currently I have to perform the following:
In Printers & Scanners > Select a printer > Select Options & Supplies > Select Utility > Open Printer Utility > Click check box by Use Department ID Management > enter Department ID.
Completing all of this prior to uploading the printer to Casper Admin doesn't seem to work.
Can anyone help? Thanks in advance!
Had to figure this our yesterday looking at the PPD that gets created at /etc/cups/ppd/
That file shows all of the configurable options, one of which is CNUseJobAccount/Department ID Management
We were setting up a Canon Imagerunner Advanced 6255 using the UFR II driver for Mac.
To setup the printer using self service we automatically installed the drivers.pkg via policy, then scoped a self service policy to a smart group who had the drivers installed using this command in a 'Files and Processes' payload:
lpadmin -p “$Printername” -E -v smb://$Windows_serverURL/$PrinterQueue -P "/Library/Printers/PPDs/Contents/Resources/$driver.ppd" -D "$PrinterQueue" -o auth-info-required=negotiate -o CNUseJobAccount=true
Just replace the $ variables with your own stuff and it should work a treat. The $driver.ppd we used for the Imagerunner Advanced 6255 was CNPZUIRA6255ZU.ppd.gz.