Welcome to HP Forums,
This is a great place to get support, find answers and tips to your technical queries.
It seems like it is a problem with the printer driver.
Let’s try to fix this issue by doing a clean install.
Follow the steps mentioned below:
First, unplug the USB cable from the printer is present.
Go to Control panel – Programs and feature – Select all the HP ENVY printer entries and uninstall them.
Now go to Control panel – Devices and printer – Select all the printer entries and remove the device.
Restart your computer.
Click the bottom-left Start button on the desktop, type device manager in the search box and tap Device Manager on the menu.
Once in device manager, click on the view tab in the top & choose “Show hidden devices”.
Then from the device manager list, check the entries under “Printer” – If there are any entries, please right click and choose “uninstall” – In the confirm device un-install pop-up, make sure you select the box which says “Delete the driver software for this device".
Also, check the entries under "printer queue" and "imaging devices" and repeat the same exercise.
Delete any printer entry or any entry which says “Unknown device”.
Once done, close device-manger.
Then press the "windows key" + "r" to get the "Run" window open - Type "printui.exe /s" and press enter.
Under print server properties, go to drivers - remove any entry there as well.
Again, go to Run window, type – “c:/programdata” – Go to Hewlett Packard folder, remove any printer related folders & files.
Once done you can try cleaning out your temporary files and cached files.
You can try using automated applications like some cleaner software's that you can download from the internet.
Now restart your computer again.
Open the Run window again, type “services.msc” and press ok to get services window.
Scroll down to “Remote Procedure Call (RPC)” – right-click and go to properties.
Make sure the service is started and startup type is “Automatic”.
Now scroll up and go to “Function Discovery Provider Host” – right-click and select properties – Change the startup type to “manual” and start the service.
Repeat the same exercise on “Function Discovery Resource Publication” as well.
Click on this link: https://support.hp.com/in-en/drivers/selfservice/swdetails/hp-envy-4510-all-in-one-printer-series/7588794/model/7588795/swItemId/mp-152056-2 to download and install the software.
Then let's assign a manual IP to the printer.
1) Print a Network configuration page from the printer's control panel.
2) Look for IP address from the Network configuration page.
3) Open web browser - Chrome or IE or any other browser that you are using.
4) Type the IP address mentioned on Network configuration page into the browser's address bar or URL bar and press enter button.
5) Go to the Network tab.
6) Click on Networking from the left pane.
7) Then click on Network Address (IP).
8) Click on Manual IP Address and go to suggest a Manual IP.
9) Scroll down the screen and select Manual DNS server.
10) Enter the Primary and secondary DNS server from the Network Configuration page into the Manual Preferred DNS server field.
11) Click on Apply.
Refer to the video link for step by step instructions -http://hp.care/2cqpl6p
Note: The video is for win 8 but steps are similar for other operating systems as well. You need to enter the IP address in the browser's URL or the address bar to access the printer page.
Please click "Accepted Solution" on the post that solves your issue to help others find the solution.
To show appreciation for my help, please click the "Thumbs Up Icon" below!
Cheers