Place the computer and printer next to each other.
Turn the computer on and wait for it to boot up.
Plug the printer into the wall and then take the USB cord that is attached to the printer
Turn the printer on.
Click on "Start menu" and go to the "Control panel".
Find Printers and hardware box and click on it.
Take mouse and click Add printer.
When you see Welcome to the add printer wizard, hit Next.
Click Automatically detect and install plug and play printer on the add printer wizard page.
Installing the printer will begin if the network can automatically detect it.
You will be prompted to install the printer manually. Click "Next."
Select printer port. Use the recommended port for best set up options. Click Next.
Pick manufacturer and printer. Click Next.
Type a name or confirm name if it appears in the box and set printer as default printer if wish.
Receive a successful completion of installation of printer message. Click "Finish."
You can refer to 123.hp.com/setup in case you have any doubts related to the setup.