Windows 10 showing error 0x00000005 on trying to connect to a network printer

This error 0x00000005 is usually caused when you are unable to setup your new printer or a different printer as your default printer other. You can try these steps below:

1. open the Windows Registry
2. Go to: HKEY_CURRENT_USER \ Software \ Microsoft \ Windows NT \ CurrentVersion \ Windows
3. Right click on Windows folder and select Permissions…
4. Here check the Full Control under Allow option. Click Apply > OK to save changes.
5. Delete these following registry
LegacyDefaultPrinterMode
UserSelectedDefault
Device
6. Restart your system.