пятница, 3 августа 2012 г.

Cleaning Windows 7 print drivers

There was a problem cleaning Windows 7 print drives (HP 1214nfw MFP in my case). A simple howto:

  1. Stop Print Spooler service
  2. Go to C:\Windows\System32\Spool
  3. Create a BACKUP.YYYYMMDD folder
  4. Move Folders 'PRINTERS', 'PRTPROCS', 'SERVERS','TOOLS' here
  5. Go to  C:\Windows\System32\Spool\Drivers and move everything except COLOR folder to  C:\Windows\System32\Spool\ BACKUP.YYYYMMDD
  6. Start Print Spooler service. It must start without errors now
  7. Run command line tool as administrator
  8. Run MMC from command line
  9. Add Print Manager snap-in
  10. Clear everything from here
  11. Stop Print Spooler service
  12. Run REGEDIT from command line window
  13. Navigate to HKLM\System\CurrentControlSet\Control
  14. Export  HKLM\System\CurrentControlSet\Control\Print to file (for backup)
  15. Navigate one by one  HKLM\System\CurrentControlSet\Control\Print\Envinronments\(all branches)\Drivers\(all branches)\ and clear everything from here.
  16. Navigate one by one  HKLM\System\CurrentControlSet\Control\Print\Envinronments\(all branches)\Print processors\ and clear everything except "winprint" from here.
  17. Navigate to  HKLM\System\CurrentControlSet\Control\Print\Monitors and clear everything except 'BJ Language monitor', 'Local Port','USB Monitor','Standard TCP\IP Port','PJL Language Monitor'
  18. Navigate to  HKLM\System\CurrentControlSet\Control\Print\Printers and clear everything here
  19. Close regedit
  20. Return from backup C:\Windows\System32\spool\PRTPROCS\(*)\winprint.dll on It's place
  21. Start Printer Spooler service.