/build/static/layout/Breadcrumb_cap_w.png

How to Disable PnP on an installed Printer??

Hi all, I´ve a problem, I wanna install a unsigned printer driver in XP using SMS, the users are "users"

I´ve tried all HELP!

The Printer is a Citizen CBM Partial Cut - a Thermo Transfer Printer - LPT is the Interface.

The first thing you have to do is setting the system to ignore unsigned driver- DONE!

First i tried using Dpinst with the /lm (legacymode) switch, the drivers are being installed in the DRVCache, but pnp does not find the right one.

Tried to add the printer using
RUNDLL32 PRINTUI.DLL,PrintUIEntry /ga /if /b "CBM1000 Partial Cut" /f "c:\Program\CITIZEN\CBM1000II\Driver\oemsetup.inf" /r "LPT1:" /m "CBM1000 Partial Cut"

This works fine, but PnP finds the printer after a reboot, and a "user" does not have the rights to add the printer.

Now I wanna disble PnP on that device - possible??
Now to my "work around" - Have anyone done this?
In the registry, under the printername a key is generated IF letting PnP add he printer
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\CBM1000 Partial Cut\PnPData]...Dont have the key here now..
a key is generated that also exists in the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\LPTENUM\]...Dont have the key here now..

My plan is to export this key on a pc where PnP have added the printer and import it in the registy on the host where I wanna add the printer using RUNDLL32 PRINTUI.DLL,PrintUIEntry to disable the PnP functionality on that device.
Yes I know only system have write rights on this key.

Have anyone tested this?

0 Comments   [ + ] Show comments

Answers (1)

Posted by: spartacus 16 years ago
Black Belt
0
Have you considered using the rescan function of the devcon utility ?

This is theory should force a rescan of PnP devices.

This could be run immediately after your RUNDLL32 command - which I assume is running in elevated context anyway - and hopefully the new hardware found dialog would not then occur following the reboot.

[font="Trebuchet MS"]Lycka till[:)]

Regards,

Spartacus
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ