I have installed windows printer drivers and it worked but now I need to remove several. I have tried everything I can find but nothing will get rid of them. Using "remove" from a winxp machine in "server properties" won't work. It claims they are in use. I'm not sure what "in use" means. Nothing is printing and the drivers should be local. I've tried the rpc client and it gives errors which I cannot post because I'm not near the machine now but I believe it too states something about being in use. Any tips?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 2 Feb 2005, Joe Konecny wrote:> I have installed windows printer drivers and it worked but now I need to > remove several. I have tried everything I can find but nothing will get > rid of them. Using "remove" from a winxp machine in "server properties" > won't work. It claims they are in use. I'm not sure what "in use" > means. Nothing is printing and the drivers should be local. I've tried > the rpc client and it gives errors which I cannot post because I'm not > near the machine now but I believe it too states something about being > in use. Any tips?In use on the server means that they are assigned to a printer. cheers, jerry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQFCAaTnIR7qMdg1EfYRAjJ3AJ9YHzoL5uvz4cnthIAvpARjIBHEVwCg2pBs mfiegyDLzxK8y8dXFS2gCkw=Am27 -----END PGP SIGNATURE-----
Gerald (Jerry) Carter wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Joe Konecny wrote: > > |> In use on the server means that they are assigned > |> to a printer. > | > | Assigned to a printer on a client? > > Nope. Assigned to a printer on the server. You night > need to use use tdbtool on ntprinters.tdb and delete > any records for printers that no longer exist. >The printer that I want to remove the driver for still exists. I just no longer want to have them on the server. Should I still look at it with tdbtool?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joe Konecny wrote: | Gerald (Jerry) Carter wrote: | |> -----BEGIN PGP SIGNED MESSAGE----- |> Hash: SHA1 |> |> Joe Konecny wrote: |> |> |> In use on the server means that they are assigned |> |> to a printer. |> | |> | Assigned to a printer on a client? |> |> Nope. Assigned to a printer on the server. You night |> need to use use tdbtool on ntprinters.tdb and delete |> any records for printers that no longer exist. |> | | The printer that I want to remove the driver for | still exists. I just no longer want to have | them on the server. Should I still look at it with | tdbtool? smbd stores printing information (such as which driver is bound to the printer) in ntprinters.tbd. You can use tdbtool (somewhat rough around the edges) to delete the record for this printer if it no longer exists in smb.conf (or via the [printers] section). cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCAitAIR7qMdg1EfYRAlJnAJ0aMMkQ3cfGCNUAgfoAQrktyy+fmACdFJ+H koxcdVjtiq34XjCD9LG7+JQ=SLkX -----END PGP SIGNATURE-----
Hi, Like Gerald said, using the tdbtool is the way to go. Something like this. tdbtool /var/lib/samba/ntdrivers.tdb Then with dump find the keys for your printers. The ones with W32X86 are for W2K/XP The ones with WIN40 are for WNT/9x/Me Example: If you wish to remove the win98 drivers for the printer prn1, you would have to look for something like DRIVERS/WIN40/0/prn1 and then delete DRIVERS/WIN40/0/HPLJ022 Note: If the printer names has spaces you must escape it with \ Hope this helps. Best Regards, Bruno Guerreiro -----Original Message----- From: Joe Konecny [mailto:jkonecn@green-mfg.com] Sent: quinta-feira, 3 de Fevereiro de 2005 13:39 To: Gerald (Jerry) Carter Cc: samba@lists.samba.org Subject: Re: [Samba] Removing printer drivers? Gerald (Jerry) Carter wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Joe Konecny wrote: > > |> In use on the server means that they are assigned > |> to a printer. > | > | Assigned to a printer on a client? > > Nope. Assigned to a printer on the server. You night > need to use use tdbtool on ntprinters.tdb and delete > any records for printers that no longer exist. >The printer that I want to remove the driver for still exists. I just no longer want to have them on the server. Should I still look at it with tdbtool? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba