Examine the printer to find your model number. Most HP printers place the model number on the front or back of the printer. The model number displays as "HP Deskjet D4200" or similar.
Visit the HP Support website to download the appropriate drivers. See the HP Customer Support resource below for the link. Enter your model number and choose your operating system (Windows XP, Vista, etc.) to download the correct drivers.
Connect the printer to the computer according to the package instructions.
Open your computer's Start menu and select "Control Panel," and then select "Printers" under "Hardware." Click on "Add a Printer." Use the recommended port to install the printer.
Select the brand (HP) of your printer, then select the model number. Click "Next" and allow the wizard to install your printer. Print a test page to make sure it works correctly.