Lexmark Drivers (S300-400) - Registry Entries - Driver gets installation automatically

I have an image of windows XP machine, there is couple of Registry entries for printer installations as well as Lexmark software was installed on the machine too. I need to delete the entries from Registry and remove all Lexmark related driver files from the computer. I was able to stop spooler service, deleted all the local printers installed on the machine, able to uninstall Lexmark software as well but there are driver files in c:\windows\system32 and C:\Driver Cache\i386 and off course registry entries.
The solution I want is whenever I connect anything to the PC, It should ask me to provide installation files, and it should not install anything by itself.
collage_jeanzAsked:
Who is Participating?
 
collage_jeanzConnect With a Mentor Author Commented:
I found the solution :
Windows Registry Editor Version 5.00
[-HKEY_CURRENT_USER\Printers\Settings\Wizard]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit]
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start [-Menu2\Programs\Lexmark]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Lexmark]
[-HKEY_LOCAL_MACHINE\SOFTWARE\LexmarkInkjet]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E979-E325-11CE-BFC1-08002BE10318}\0002]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0005]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0006]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0007]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#7&1dcca96&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#6&2995c074&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#6&2667223e&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Environments\Windows NT x86\Drivers\Version-3\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Environments\Windows NT x86\Print Processors\Lexmark S300-S400 Series Print Processor]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Print\Printers\Lexmark S300-S400 Series\PnPData]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USB\Vid_043d&Pid_0180&MI_00]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Enum\USBPRINT\LexmarkS300-S400_Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 1)]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 2)]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Class\{4D36E979-E325-11CE-BFC1-08002BE10318}\0002]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0005]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0006]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0007]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#6&2667223e&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#6&2995c074&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#7&1dcca96&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Print\Environments\Windows NT x86\Drivers\Version-3\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Control\Print\Environments\Windows NT x86\Print Processors\Lexmark S300-S400 Series Print Processor]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Enum\USB\Vid_043d&Pid_0180&MI_00]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Enum\USBPRINT\LexmarkS300-S400_Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 1)]
[-HKEY_LOCAL_MACHINE\SYSTEM\ControlSet003\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 2)]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E979-E325-11CE-BFC1-08002BE10318}\0002]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0005]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0006]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0007]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#6&2667223e&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#6&2995c074&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceClasses\{28d78fad-5a12-11d1-ae5b-0000f803a8c2}\##?#USB#Vid_043d&Pid_0180&MI_01#7&1dcca96&0&0001#{28d78fad-5a12-11d1-ae5b-0000f803a8c2}]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-3\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Print Processors\Lexmark S300-S400 Series Print Processor]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_043d&Pid_0180&MI_00]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USBPRINT\LexmarkS300-S400_Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 1)]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 2)]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 1)]
[-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 2)]
[-HKEY_USERS\S-1-5-21-2118135359-1856009214-510530097-55448\Printers\Settings\Wizard]
[-HKEY_USERS\S-1-5-21-2118135359-1856009214-510530097-55448\Software\Microsoft\Windows\CurrentVersion\Applets\Regedit]
[-HKEY_USERS\S-1-5-21-2118135359-1856009214-510530097-55448\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu2\Programs\Lexmark]
[-HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series]
[-HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 1)]
[-HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\Print\Printers\Lexmark S300-S400 Series (Copie 2)]

And then made a batch file

@ECHO OFF
NET STOP SPOOLER
regedit.exe /s \\ServerShare\FileServer\Removal\Lexmark_removal.reg
cd/d "c:\program files"
for /D %%D in (lexmar*) do attrib -s -h -r "%%D"
for /D %%D in (lexmar*) do rd/s/q "%%D"
cd/d "C:\WINDOWS\system32\spool\drivers\w32x86"
for /D %%D in (lexma*) do attrib -s -h -r "%%D"
for /D %%D in (lexma*) do rd/s/q "%%D"
rmdir /s /q C:\WINDOWS\system32\spool\drivers\w32x86\3
rmdir /s /q C:\WINDOWS\twain_32\Lexmark
rmdir /s /q C:\WINDOWS\Driver~1
attrib -r -s -h c:\windows\system32\lxea*.*
del /s/q lxea*.*
net start spooler
exit
0
 
printnix63Commented:
Hi,

well, the "normal way" to uninstall a driver is either the software uninstall routine, and/or to go into the printer window and use "Server Properties", change to the driver tab, select each driver you want to uninstall and click "Remove"

The point, that you do not want Windows to install anything by itself is something, that lies within windows. A USB Device connected to a port supplies a Vendor ID and Windows starts looking into its database, what kind of drivers it will have for this ID, that is basically the reason, why in many cases one should install the drivers first and then connect the device.

The only way I'd think of to let windows not look and start doing something, might be to stop the Plug and Play service. This will result that windows does not check anything at all, if you connect devices.

Maybe this helps a bit further.
0
 
collage_jeanzAuthor Commented:
No Objection
0
 
collage_jeanzAuthor Commented:
I found it by my ownslef.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.