Navigation

    ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    SOLVED lpadmin - remove printer with a space in the name

    IT Discussion
    administration apple ard lpadmin osx printers unix
    2
    4
    356
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403
      DustinB3403 last edited by

      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. However space 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.

      1 Reply Last reply Reply Quote 0
      • DustinB3403
        DustinB3403 last edited by DustinB3403

        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

        dbeato 1 Reply Last reply Reply Quote 2
        • DustinB3403
          DustinB3403 last edited by DustinB3403

          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

          dbeato 1 Reply Last reply Reply Quote 2
          • dbeato
            dbeato @DustinB3403 last edited by

            @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?

            DustinB3403 1 Reply Last reply Reply Quote 0
            • DustinB3403
              DustinB3403 @dbeato last edited by

              @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

              1 Reply Last reply Reply Quote 1
              • First post
                Last post