Set the Default Printer:
Open the Devices settings by using the search box or asking Cortana.
Select Printers & scanners.
Ensure that the box next to “Let Windows manage my default printer” is unchecked.
Choose your printer from the list provided. If your printer appears multiple times, select the version that shows an idle or online status.
Run HP Print and Scan Doctor:
Download and run HPPSdr.exe from the official HP website.
Once HP Print and Scan Doctor is open, click Start, and then choose your printer.
If your printer is not listed, turn it on and click Retry.
If there is a connection problem, follow the instructions in the tool.
Click Fix Printing.
Select the Correct Printer Port:
Follow these steps to select the correct printer port in Windows 10.
Selecting the correct printer port ensures that your printer does not appear as offline.
Greetings,
Peter