How do I pass a printer URI to lpadmin? I'm trying to connect an LexmarkE210 to a Mac. Running
sudo lpinfo -v | grep 210   # find LexmarkE210 URI

gives me usb://Lexmark/E210?location=1a140000 as the URI for the printer.
The .ppd driver was downloaded from openprinting.org
I first tried:
lpadmin -E -p &quot;Lexmark-E210&quot; -v &quot;usb://Lexmark/E210?&quot; -P &quot;/Library/Printers/PPDs/Contents/Resources/en.lproj/Lexmark-E210-gdi.ppd&quot; -o printer-is-shared=false

then tried without the question mark:
lpadmin -E -p &quot;Lexmark-E210&quot; -v &quot;usb://Lexmark/E210&quot; -P &quot;/Library/Printers/PPDs/Contents/Resources/en.lproj/Lexmark-E210-gdi.ppd&quot; -o printer-is-shared=false

to pass this to lpadmin (as described in
Add an IP printer with command line)   The result in either case is:

but it didn't work. So how do I pass the URI to lpadmin?
A third attempt to install the printer (no ?) with lpadmin returned printer status with the error:

A resume command, sent through the Web UI will set the printer status to idle, however, the problem persists.
? is used in URIs for parameterization. Here it is enabling use of the location= which appears to be a port reference.
So, it would seem you're asking if you should drop it in your descriptor I would say yes.