Limiting Printers to List

Morningside
Contributor II

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 1

Hugonaut
Valued Contributor II

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
________________
Looking for a Jamf Managed Service Provider? Look no further than Rocketman
________________


Virtual MacAdmins Monthly Meetup - First Friday, Every Month