Run the HP Print and Scan Doctor when you notice HP Printer offline. Download the utility from the official HP website. Open the HPPSdr.exe file to run. Tap 'Yes' to trust the file source and then 'Start.' Select your printer. The utility will detect potential connection problems. Adhere to the prompts and tap 'Yes' to turn on printer updates and making the printer default.