Hi,
Go to Start > Settings > Bluetooth & Devices > Printers > select the printer. Check if the status is offline or idle.
If it's offline, are you using it via USB or Wi-Fi?
If it's Wi-Fi, select the "Remove" option, wait for it to remove, then open the command prompt (admin) and run the commands: sfc /scannow and dism /online /cleanup-image /restorehealth. Wait for the process to finish and restart the computer.
Open Start > Settings > Bluetooth & Devices > Printers > Add Devices and wait for it to locate the printer and press Connect.
Wait for it to add the printer, and after adding it, select "Print test page" and see if it prints.
If it's USB, I recommend using the HP Driver directly from the manufacturer:
Remember, you can use the EASY driver above to also install the network printer driver instead of directly through Windows, which is recommended.
Make sure the printer is connected to Wi-Fi; check the printer's LCD screen under Settings > Network.
The link above is for the printer drivers from the manufacturer, HP.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Thanks