. Create a new Online Kscript. For Operating System, uncheck Select Specific Operating System and select Mac OSX. Under Dependencies, upload your printer driver ppd.gz file. Add a New Task. First step is copying the driver to the Printer PPD directory. Under On Success - Launch Program:.
Directory: /bin/. File: cp.
Parmeters: /Library/Application Support/Dell/KACE/data/kbotscache/packages/kbots/ 130/Dell C1765nfw Color MFP.ppd.gz /Library/Printers/PPDs/Contents/Resources/.Change the number 130 to the ID of your script that gets made. (hover your mouse over the name of the script from the script list).
Add another step underneath this one. Directory: /usr/sbin. File: lpadmin. Parameters: -p DellC1765nfwColorMFP -L 'Bruce's Office' -E -v lpd://10.0.0.3 -P '/Library/Printers/PPDs/Contents/Resources/Dell C1765nfw Color MFP.ppd.gz' -u allow:all. Usb 1000mbps for mac. Change the IP address to the IP of the printer.L is the location (Bruce's Office) which you can change in the command.u allow:all allows all users to see and change the printer settings. Thank You very much. This is most helpful I tried pushing out the printers from the MacOS server we have setup for profile management and Apple Remote Desktop but since the drivers for the printers I needed to use were not part of MacOS it was installing them as generic.
I used this to copy multiple driver files and install a total of 3 printers in one script for an art lab. The question I have is there a command line I can run to set a certain printer as default I am thinking I can run this command at the end of the script to set the printer I want as default. /usr/sbin/lpadmin -d printer.