Check the manufacturers support site for newer drivers for your printer, they might have Windows 7 drivers that you can download and install. Download the correct bit level for your computer - 32 or 64 bit - and then install them.
HP LaserJet M1005 Drivers:
To see if you have Windows 7 32 or 64 bit:
1. Open System by clicking the Start button, right-clicking Computer, and then clicking Properties.
2. Under System, you can view the system type, it will say 32 or 64 bit.
Install the drivers before connecting the printer to your computer. After installing connect the printer, if it’s still not recognized:
http://windows.microsoft.com/en-us/windows7/Install-a-printer
Try the Printer Troubleshooter
- Open the Printer troubleshooter by clicking the Start button
- Then click on Control Panel
- In the search box, type troubleshooter
- Then click Troubleshooting
- Under Hardware and Sound, click "Use a printer"