Skip to main content
Question

Limiting Printers to List

  • October 4, 2018
  • 1 reply
  • 2 views

Forum|alt.badge.img+8

Hi folks, I have successfully built and deployed a Config Profile for Printers in my school. What I find though, is that the printers specified in the CP are added to the Printer list in the target computers as opposed to overwriting the list. Many of the machines out there are littered with printers that no longer exist, have the wrong names or drivers, etc. How does one maintain control over the entire list of printers using Jamf Config Profiles?

1 reply

Hugonaut
Forum|alt.badge.img+15
  • Esteemed Contributor
  • 574 replies
  • October 5, 2018

You cannot "Maintain Control" over printers added locally by end users, in order to manage printers, they must be added by JAMF.

You must remove the printers from the end users computer. And then re-deploy the printers via JAMF so they can be managed, mapped / unmapped, etc.

This script is the one that I used & I know it works up to 10.13 (Havent tested on Mojave yet). Thank @franton - https://www.jamf.com/jamf-nation/discussions/21821/deleting-printer

#!/bin/bash

lpstat -p | awk '{print $2}' | while read printer
do
echo "Deleting Printer:" $printer
lpadmin -x $printer
done