Hello,
I am currently cleaning up our printers on our Macs. I have created a script to remove printers using lpadmin -x command. I created a script for six printers and noticed two of them do not get deleted. I am using the CUPs name in the script to delete unwanted printers. I believe these two printers that are not getting removed are very old and the CUPs name is not accurate so its just skipping the step to delete the printer.
These two printers are no longer in Jamf and all our employees are remote so trying to get the actual CUPs name is a bit difficult. Is there a script I can run to either delete the printers based on the Device URI ie: lpd://10.1.1.1 or another way where I can run a script to collect the CUPs name of the printers that won't delete using my current script? If I can somehow get the actual CUPs name of the printers then I can revise my current script to delete those two printers that are still hanging around.
