Solved lpadmin - remove printer with a space in the name
-
Because of Apple, and GUI and Imaging, our existing printers have spaces in their name "Printer on 12" or "Accounting Printer"
With lpadmin I can delete printers with
lpadmin -x printer-name
without special characters. Howeverspace
is a special character, and I'm attempting to find a way to remove these printers without having to touch every damn machine.Any guidance on what character would qualify as a space in this example?
lpadmin -x Accounting Printer
?wrapping the name in quotes (single or double) does not work.
-
Nevermind!
lpadmin adds spaces as underscores!
So with
lpadmin -p
I was able to find the list of printers.lpadmin -p
Accounting_Printer
And with
lpadmin -x Accounting_Printer
was able to remove the printer!
Removed Accounting_Printer
-
@DustinB3403 said in lpadmin - remove printer with a space in the name:
Nevermind!
lpadmin adds spaces as underscores!
So with
lpadmin -p
I was able to find the list of printers.lpadmin -p
Accounting_Printer
And with
lpadmin -x Accounting_Printer
was able to remove the printer!
Removed Accounting_Printer
Good to know for central administration of Apple devices. What are you using right now?
-
@dbeato said in lpadmin - remove printer with a space in the name:
@DustinB3403 said in lpadmin - remove printer with a space in the name:
Nevermind!
lpadmin adds spaces as underscores!
So with
lpadmin -p
I was able to find the list of printers.lpadmin -p
Accounting_Printer
And with
lpadmin -x Accounting_Printer
was able to remove the printer!
Removed Accounting_Printer
Good to know for central administration of Apple devices. What are you using right now?
ARD and Unix cli