Skip to main content
Question

"Share this printer on the network" turned on when printers are installed via Self Service.

  • November 21, 2017
  • 4 replies
  • 38 views

howie_isaacks
Forum|alt.badge.img+23

I have several printers setup to be deployed via Self Service. Despite my not having turned it on while creating the printer configuration, every time a printer is installed using Self Service, the option to "Share this printer on the network" gets turned on. The printer sharing service does not get turned on, so these printers are not really shared. This is more of an annoyance than anything. Does anyone else have this problem? How can I stop this from happening?

4 replies

donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • November 21, 2017

We script our printers, adding -o printer-is-shared='false' option to disable sharing for the printer.

Not sure if you can push the command if the printer is already set up, but in case you can, maybe this helps...

#!/bin/sh
#
#   lpadmin:
#       -p = Queue
#       -v = URL
#       -E = Enable
#       -P = PPD
#       -D = Description
#       -L = Location
#       -o = Options

/usr/sbin/lpadmin 
-p MyFancyQueue 
-v lpd://MyFancyPrinter.domain.com/MyFancyQueue 
-E 
-P /path/to/MyFancyPPD 
-D MyFancyDescription 
-L MyFancyLocation 
-o printer-is-shared='false' 

#other options using "-o" would go here

exit 0

howie_isaacks
Forum|alt.badge.img+23
  • Author
  • Esteemed Contributor
  • November 21, 2017

Thanks! I have some time scheduled tomorrow to work on our JSS. I will try this out.


donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • November 21, 2017

Forum|alt.badge.img+33
  • Hall of Fame
  • November 22, 2017

I've written a script which generates payload-free packages, where the package's embedded script uses the lpadmin command to create printers with a pre-set configuration. By default, printer sharing is disabled as part of the printer configuration. It's available via the link below:

https://github.com/rtrouton/payload-free_package_printer_generator

I have a post on how to use this script available via the link below:

https://derflounder.wordpress.com/2017/07/18/generating-printer-configurations-using-payload-free_package_printer_generator-sh/