The setdriver command will fail if in Samba's mind the queue is not
already there. A successful installation displys the promising message that the:
Printer Driver ABC successfully installed.
parts of the procedure. But you may also see
a disappointing message like this one:
result was NT_STATUS_UNSUCCESSFUL
It is not good enough that you can see the queue in CUPS, using the
lpstat -p ir85wm
command. A bug in most recent versions of Samba prevents the proper update of the queue list. The recognition
of newly installed CUPS printers fails unless you restart Samba or send a HUP to all smbd processes. To verify
if this is the reason why Samba does not execute the
command successfully, check
if Samba “sees” the printer:
rpcclient transmeta -N -U'root%xxxx' -c 'enumprinters 0'|grep ir85wm
An alternate command could be this:
rpcclient transmeta -N -U'root%secret' -c 'getprinter ir85wm'
cmd = getprinter ir85wm
comment:[CUPS PostScript-Treiber for Windows NT/200x/XP]
By the way, you can use these commands, plus a few more, of course, to install drivers on remote Windows NT print servers too!