For an HP Officejet 600 all-in-one printer, uninstalling and reinstalling the software fixes the error.
Follow the instructions:
uninstall:
http://h10025.www1.hp.com...mp;lang=en
install:
http://h10025.www1.hp.com...mp;lang=en
You might also try just rebooting and then accepting the found hardware wizards (accept the defaults, click next or finish on everything). I did not try that solution though, because I uninstalled and reinstalled completely.