Posted on 06-06-2017 04:50 AM
Hi All,
I feel like I am missing something very simple here, but I can't seem to work it out.
We have a DMG which pushes out B&W and Colour Presets for our printers. This was created a long time ago during our JAMF Kick Start and has worked ever since. We are replacing our printers shortly and will be using a Windows Printer Server.
When I install the Print Server Queue, and then install the DMG, it installs our presets as desired, but they aren't set as default. This means users won't use them.
So currently on MS Word it shows "Default Settings" under presets (below)
but I want it to have "B&W" as the default as per below
I have loaded up composer and taken a snapshot of me holding the ALT key and printing as B&W, created a DMG and pushed it out with the fill directories options ticked. I thought this would save the preference files, but it doesn't seem work.
We can't really afford to go round and do this on 200 end user machines, and I'm sure it can be scripted in some way, I just can't work it out!
Any help will be greatly appreciated!
Solved! Go to Solution.
Posted on 06-06-2017 08:08 AM
Set all your presets, then deploy the com.apple.print.custompresets.plist file to users.
Bobs your uncle etc. etc.
:-)
Posted on 06-06-2017 07:21 AM
Hi,
on a client, where the printer is already installed, go to the terminal and type
lpoptions -l
This will show you all options, which are available for the printer driver. If you add a printer in terminal, using this options, you can define which should be default, for example black and white printing. We using this and the command for our printers looks like this:
lpadmin -p PRINTERNAME -E -v lpd://PRINTSERVER/QUEUENAME -o printer-is-shared=false -P "PATH TO PRINTER-DRIVER" -o ColorModel=Gray -o Duplex=DuplexNoTumble -o Option19=One -o Option27=True -o Option25=True -o Option21=True -o Option22=True -o Option17=DF770 -o Option18=HardDisk
To know what all this option numbers mean, you would have to use the first command. Also, depending on your used printer model, this options could have different names, for example real ones instead of just numbers.
Hope this helps a little bit!
Greetings,
Marco
Posted on 06-06-2017 07:26 AM
Hi Marco,
Thank you for your response!
Would this allow users to still select colour if they wished though? We have B&W usually as the default, then users can select Colour if required?
Posted on 06-06-2017 07:29 AM
Yes, this just defines the default, but of course this settings can be changed for individual print jobs.
Posted on 06-06-2017 08:08 AM
Set all your presets, then deploy the com.apple.print.custompresets.plist file to users.
Bobs your uncle etc. etc.
:-)
Posted on 06-06-2017 08:10 AM
Copy to /Library/Preferences.
Available to all users.
Posted on 06-06-2017 09:19 AM
Thank you @kerouak
This worked, but I had to make sure the computer rebooted, otherwise changes didn't take effect!
Posted on 06-06-2017 04:06 PM
@billystanton I use
killall cfprefsd
at the end of the install and it seems to load them without having to reboot.
Posted on 06-07-2018 09:52 AM
@kbingham is this still the case? I cannot get Presets to show up
I made a script:
killall cfprefsd
that runs after the Preference files are installed and its not showing up
I restarted the computer to see if the rest of the policy works and the presets do show up
Posted on 01-09-2019 08:25 AM
Same issue here...still requires a restart for presets to show. Would love to avoid a reboot for our policy.
Posted on 04-01-2019 04:11 PM
defaults import <domain> <filename>
seems to apply immediately without the need to kill the cfprefsd process, but this is per-user.