Unmapping and Mapping a printer

werddrew
New Contributor

I feel silly.

JSS 9.2, trying to create a self-service script that unmaps and remaps printers

I go to the Printers payload and add two new printer items for each printer I want to unmap and set the drop down to "unmap."

I then add two new printers items for each printer I want to remap and set the drop down to "Map."

But then the ORDER of the items changes and the Map commands execute before the unmap commands. So essentially the policy now adds two printers and then immediately unmaps them. No combination of removing and readding commands, or changing the drop downs will change the order in which these execute. It always Maps the printers first and then immediately unmaps them.

Am I crazy? Am I missing something here?

4 REPLIES 4

waderobson
New Contributor III

You could use scripts to delete the queues and set them to run "before" in the printer policy. Thats one way to do it.

Find the queue name

lpstat -v

Deletes queue by name

lpadmin -x queue_name

werddrew
New Contributor

Yea that would work, I just tend to avoid scripting when there's a feature that ought to do it normally.

No way to sort this "unmap" and "map" so that the logical one goes first?

Dalmatian
Contributor

i have the same problem here as @dsandquisit the order just changed and i can't manage them unmap first!

WhippsT
Contributor

This is STILL an issue in 9.96... It's really frustrating.