Adding printer to WIndows 10 machine sticks at “device setup in progress”

Windows will try to download the icon for the printer but this often gets stuck because the Microsoft metadata server stops working. You can turn this feature off on the WIndows 10 machine by running the following command in a command window:

Rundll32.exe %SystemRoot%\System32\newdev.dll,DeviceInternetSettingUi

After rebooting, the printer should show fully installed and ready.