How to fix 0x00000006 Printer error in Windows?

Prefer to fix it yourself? The manual steps follow.

  • 9methods
  • 2 to 30 minutes
  • Intermediate
Start fixing

Applies to Windows 11 and Windows 10 PCs that connect to a printer shared by another PC or a print server; Windows Server print servers and Remote Desktop servers

9 methods in this guide
  1. What the error means
  2. Causes, ranked
  3. Windows 11 and Windows 10
  4. The fixes
  5. 1. Restart the Print Spooler
  6. 2. Reach the host, add by path
  7. 3. Fix the saved password
  8. 4. Install driver as admin
  9. 5. Remove the old driver
  10. 6. Delete the cached server key
  11. 7. Allow the print RPC link
  12. 8. Add by IP address
  13. 9. Troubleshooter and updates
  14. Still there: log and host
  15. Undo the changes
  16. Keep it from coming back
  17. FAQ
Question

Hello. When I try connecting the printer to my Windows PC, I get the 0x00000006 error code with the "Windows cannot connect to the printer" message. Is there a way to fix this?

Error 0x00000006 appears in the Connect to Printer box when Windows cannot open a shared or network printer, and it means that the handle to that printer is invalid. Restart the Print Spooler first, then check that your PC can reach and sign in to the computer that shares the printer. If only standard users get the error, an administrator has to install the driver.

Short answer

Yes. The code is Windows error 6, "The handle is invalid": your PC could not open the printer on the other computer. Restart the Print Spooler service and empty its queue folder (Fix 1). Then open \\ComputerName in File Explorer: if the host does not open, fix the network or the saved password (Fix 2 and Fix 3). If an administrator can connect and you cannot, the driver needs administrator rights (Fix 4).

At a glance
ErrorWindows cannot connect to the printer. Operation failed with error 0x00000006. The number is Windows system error 6, ERROR_INVALID_HANDLE: "The handle is invalid."
Where it appearsIn the Connect to Printer box, when you add a printer shared by another PC or a print server (\\ComputerName\PrinterShareName), or when a sign-in script or Group Policy maps it.
Main causeYour PC cannot open the printer on the host. Most often: a stuck Print Spooler or stale connection data on your PC, no access to the host (network, password), or a driver that only an administrator may install.
Fastest fixRestart the Print Spooler service and delete the files in %WINDIR%\system32\spool\PRINTERS (Fix 1), then add the printer again by its share path (Fix 2).
Also written as0x0000006, 0x000000006, 0x000006, 0x00006, 00000006, error 6, "Connect to Printer 0x00000006", "Operation could not be completed (error 0x00000006)".
AffectsWindows 11 and Windows 10 clients, and Windows Server. Older reports and Microsoft articles cover Windows 7, Windows 8.1 and Windows Server 2008 R2 to 2012 R2.
Microsoft's statusNo Microsoft article explains the code for Windows 10 or Windows 11. Two older articles name it: KB 2778831 (Remote Desktop servers on Windows Server 2008 R2) and hotfix 2973940 (IPP print servers, Windows 8 and 8.1).
Needs an administratorFix 2 and Fix 3 do not. Fix 1 and Fix 4 to Fix 9 need an administrator account for at least one step. Each fix says so in its first line.
Where the cause is loggedEvent Viewer: Applications and Services Logs > Microsoft > Windows > PrintService, logs Admin and Operational.
Time to fix2 minutes for the spooler restart, 5 to 10 minutes for the network and password checks, up to 30 minutes for the driver, registry and policy fixes.

Facts checked on 14 October 2026. Steps written for Windows 11 (25H2 and 26H2) and Windows 10 22H2.

What "Operation failed with error 0x00000006" means

0x00000006 is the hexadecimal way to write Windows system error 6. Microsoft's list of system error codes names it ERROR_INVALID_HANDLE and gives it one line of text: "The handle is invalid." A handle is the reference Windows hands to a program when it opens something for it. Here that something is a printer on another computer.

So the message does not describe the printer. It says that the Print Spooler on your PC asked the host for the printer and did not get a usable connection back. The full text is Windows cannot connect to the printer. Operation failed with error 0x00000006. and the box is titled Connect to Printer.

Chart of five steps of a shared printer connection: find the host, sign in to it, talk to its spooler, get the driver, store the link, each with what breaks it and the fix number
The five things that must work before a shared printer connects, what breaks each one and which fix on this page repairs it.
The same code in three places
What you seeWhereWhat it tells you
Connect to Printer: "Windows cannot connect to the printer. Operation failed with error 0x00000006"Adding a printer that another PC or a print server shares, by double-click in File Explorer, in the Add Printer wizard or by a sign-in scriptThe case this page is about. One of the five links in the chart failed.
"Error 0x00000006" when a printer is mapped on a Remote Desktop serverWindows Server with Remote Desktop ServicesMicrosoft KB 2778831: the registry key Client Side Rendering Print Provider has filled with stale entries. See Fix 6.
Printer Properties: "Printer settings could not be saved. Operation could not be completed (error 0x00000006)"The Advanced tab of an IPP or iPrint printer, after a change of the spool optionsMicro Focus documents it for its iPrint client: those options do not apply to such printers and the message can be ignored.
One code, many spellings

The correct form has eight digits after 0x. People also type 0x0000006, 0x000000006, 0x000006, 0x00006, 00000006 or error 6. Leading zeros do not change a number, so all of these are the same code. Error 6 is a general Windows error, though: on a games console or a blue screen the same digits mean something else.

Why Windows cannot connect to the printer: causes of 0x00000006, ranked

Microsoft gives no single cause for this code on Windows 10 and Windows 11. The ranking below comes from what the code means, from Microsoft's documents about each link of the connection and from what administrators report. It runs from the common and cheap to rule out to the rare.

Causes and the fix that belongs to each
#CauseHow to recognise itFix
1The Print Spooler on your PC is stuck, or it holds old data about the print serverOne PC or one user fails, the others connect. The printer worked on this PC before.Fix 1, then Fix 6
2Your PC cannot reach the host or cannot sign in to it: another network, sharing switched off, a wrong share name, an old saved password, guest access blocked\\ComputerName does not open in File Explorer, or it asks for a passwordFix 2, Fix 3
3The driver may not be installed. Since the updates of 10 August 2021, only administrators may install printer drivers through Point and PrintAn administrator connects without trouble, a standard user gets the errorFix 4
4A driver for this printer model is already on your PC and it is damaged or does not match the host'sOther printers on the same host connect, this model does notFix 5
5Windows 11 22H2 or later talks to the host by RPC over TCP, and a firewall blocks it or the host offers named pipes onlyIt started after a Windows 11 upgrade. Older PCs still connect.Fix 7
6The host itself: its spooler, its driver or its share is brokenEvery PC gets the error for this printer"If the error is still there" below

The earlier version of this guide named a different network as the typical cause. It is a real cause and Fix 2 tests it, but we found no Microsoft source that calls it the usual one.

Three settings you will find in forums

Setting RestrictDriverInstallationToAdministrators to 0, setting RpcAuthnLevelPrivacyEnabled to 0 and enabling insecure guest logons can each make the error go away. Microsoft calls each of them not recommended or says it makes devices vulnerable. This page uses the first one only for a short test with an undo step.

Table of six situations with error 0x00000006, what each one points to, the fix to start with and whether the fix needs an administrator account
What you see, what it points to and where to start. The same choices are in the table above the fixes.

Error 0x00000006 in Windows 11 and Windows 10: what changed since 2021

A shared printer that worked for years can start to fail without any change on your side. Since 2021 Microsoft has tightened network printing four times, and each change can leave an older host behind.

Security changes that touch shared printers
SinceWhat changedWhat it means for this errorApplies to
Updates of 10 August 2021 (KB5005652, often called the PrintNightmare change)Installing or updating a printer driver through Point and Print needs administrator rightsA standard user cannot add a shared printer when its driver is not yet on the PCWindows 10 and Windows 11
Updates of 14 September 2021 (KB4599464)The print RPC interface requires a higher authentication level by defaultClients need an update of 12 January 2021 or later, or printing to the server breaksWindows 10 and Windows 11
Windows 11, version 22H2Print traffic between computers uses RPC over TCP. RPC over named pipes is off by default.The host must accept TCP port 135 and the ports 49152 to 65535, or you must allow named pipesWindows 11 22H2 and later only
Windows 11, version 24H2SMB signing is required by default, which Microsoft says causes trouble with guest sign-inA host that lets everybody in without a password may refuse the connectionWindows 11 24H2 and later

Windows 10 22H2 has the first two changes and not the last two. Its support ended on 14 October 2025, so it gets no further fixes for the print components. The steps on this page are the same on both systems unless a step says otherwise.

Check Windows protected print mode on Windows 11

Open Settings > Bluetooth & devices > Printers & scanners and look under Printer preferences for Windows protected print mode. Microsoft says that when it is on, printers that use third-party drivers are uninstalled and cannot be used. We could not confirm which error a blocked shared printer shows, so rule this out early.

How to fix error 0x00000006: nine fixes in order

The fixes go from the cheapest to the most work. Fix 1 to Fix 3 solve the everyday cases. Fix 4 to Fix 7 repair one link of the connection each, Fix 8 avoids the shared connection altogether, and Fix 9 is the general check.

What you see or haveStart with
The printer worked on this PC before and stopped, or one user fails while others connectFix 1
\\ComputerName does not open in File Explorer, or you are not sure of the share nameFix 2
The host asks for a user name and password, or you changed a password latelyFix 3
An administrator can add the printer, a standard user gets the errorFix 4
Other printers on the same host connect, one model does notFix 5
A Remote Desktop server, or the error survives a spooler restart on one PCFix 6
It started after an upgrade to Windows 11 22H2 or later, or the host is a NAS or another non-Windows deviceFix 7
The printer has its own Ethernet or Wi-Fi connectionFix 8
Every PC fails for this printer"If the error is still there": the host

Fix 1. Restart the Print Spooler and empty its queue folder

2 minutesLow riskFor everyone, as the first step. It needs an administrator account.

Every printer connection on your PC goes through the Print Spooler service. When it holds a half-finished job or a broken connection attempt, each new attempt to open the shared printer can fail in the same way. Microsoft lists clearing and resetting the spooler as a standard step for connection problems.

What this removes

The files in the queue folder are documents that wait to be printed. They are removed, so print those documents again afterwards. Your printers, drivers and settings stay.

  1. In the search box on the taskbar, type services and select Services in the results.
  2. Select the Standard tab at the bottom and double-click Print Spooler.
  3. Select Stop, then OK. Leave the Services window open.
  4. In the search box on the taskbar, enter %WINDIR%\system32\spool\printers and open the PRINTERS folder from the results.
  5. Delete all files in the folder. Do not delete the folder itself.
  6. Go back to Services and double-click Print Spooler again.
  7. Select Start, choose Automatic in the Startup type box, then select OK.
  8. Restart the PC and add the printer again.
Services window on Windows 11 with Print Spooler selected in the list and its right-click menu open on Start, Stop and Properties
The Print Spooler service in the Services window. The right-click menu holds the same Start and Stop commands as the Properties box.
File Explorer on Windows 11 at Local Disk C, Windows, System32, spool, with the folders drivers and PRINTERS in the list
The spool folder in File Explorer. Delete the files inside PRINTERS, not the folder and not the drivers folder.
Windows Update Properties, General tab: service name wuauserv, startup type Manual, status Running: screenshot taken on Windows 11 26H2
The Properties box of a service, here Windows Update: Print Spooler has the same Startup type list and the same Start and Stop buttons.

The Services window in general, with the meaning of each startup type: Check and restart Windows services

It worked if: The printer is added without the Connect to Printer error and a test page prints.

If not: If the same message comes back, test the path to the host with Fix 2.

Fix 2. Check that your PC can reach the host, then add the printer by its exact share path

5 to 10 minutesNo riskThe printer is shared by another PC, or you never typed its path. No administrator needed, except for the sharing switches.

A shared printer is an address made of two names: the computer and the share. If your PC cannot open the computer, or the share name is not the one you think, Windows has nothing to connect to. Microsoft's own guide for shared printers starts with these checks.

  1. On the host PC, open Settings > Bluetooth & devices > Printers & scanners, select the printer and select Printer properties.
  2. On the Sharing tab, make sure Share this printer is ticked and write down the Share name exactly.
  3. Make sure both PCs are on the same local network. With several routers, extenders or a guest Wi-Fi, they must use the same one.
  4. On your PC, open File Explorer, type \\ComputerName in the address bar and press Enter. Use the host's real name.
  5. If the host does not open, open Settings > Network & internet > Advanced network settings > Advanced sharing settings on both PCs and turn on Network discovery and File and printer sharing.
  6. On your PC, open Settings > Bluetooth & devices > Printers & scanners and select Add device.
  7. Select Add manually. Newer builds show it as Add a new device manually, next to The printer that I want isn't listed.
  8. Choose Select a shared printer by name, enter \\ComputerName\PrinterShareName and follow the instructions.
Windows 10

Open Settings > Devices > Printers & scanners, select Add a printer or scanner, then The printer that I want isn't listed. Microsoft's page gives the path to the sharing switches for Windows 11 only. We could not confirm the Windows 10 one.

Three ways to make the same connection
WayWhat to enterGood for
Add Printer wizardSelect a shared printer by name, then \\ComputerName\PrinterShareNameEveryday use
Command Prompt or the Run boxrundll32 printui.dll,PrintUIEntry /in /n\\ComputerName\PrinterShareNameA connection for the signed-in user without the wizard
PowerShellAdd-Printer -ConnectionName \\ComputerName\PrinterShareNameScripts. Microsoft notes that the command may need administrator credentials.
Windows Security on Windows 11, Firewall and network protection page, listing Domain network, Private network and Public network marked active, with the link Allow an app through firewall
Windows Security shows which network type is active. Leave the firewall on: it is not the fix, the sharing switches in step 5 are.

If the printer is already in your list and fails, select it under Printers & scanners, select Remove, restart the PC and add it again with steps 6 to 8.

It worked if: The host opens in File Explorer, shows the printer's share, and the wizard adds the printer.

If not: If the host asks for a password or refuses you, go to Fix 3. If it opens and only the printer fails, go to Fix 4.

Fix 3. Store the right user name and password for the host in Credential Manager

5 minutesNo riskThe host asks for a password, refuses access, or its password was changed. No administrator needed.

Windows signs in to the host silently with whatever it has: your own account or a saved entry. An entry with an old password is sent again on every attempt, and the host refuses the printer before any driver is fetched. Microsoft's guide says to use the same account on both PCs or the host's user name and password.

  1. Type credential manager in the search box on the taskbar and open Credential Manager from the Control Panel results.
  2. Select Windows Credentials and look for an entry with the name of the host.
  3. Open Command Prompt from the Start menu. Do not run it as administrator: saved credentials belong to your own account.
  4. Delete the old entry with the first command below. Replace HOSTNAME with the name of the host.
  5. Add the right account with the second command. Windows asks for the password, so it never shows on screen.
  6. Run the third command and check that the host is in the list.
  7. Open \\HOSTNAME in File Explorer. When it opens without a prompt, add the printer as in Fix 2.

Commands, one per line

cmdkey /delete:HOSTNAME
cmdkey /add:HOSTNAME /user:username
cmdkey /list
Which account

The user name and password must belong to an account that exists on the host. If both PCs use the same Microsoft account or the same local user name and password, no saved entry is needed.

A host without passwords

Old print boxes, some NAS devices and PCs with a password-free account let everybody in as a guest. Windows 11 24H2 requires SMB signing by default, and Microsoft says this breaks guest sign-in. Its advice is not to enable insecure guest logons but to replace or update the device. On a PC host, create a user with a password and use that account here.

It worked if: The host opens in File Explorer without asking, and the printer connects.

If not: If the host opens but the printer still gives the error, the sign-in is fine: go to Fix 4.

Fix 4. Install the printer driver with administrator rights (Point and Print)

10 minutesRead the warningAn administrator can add the printer and a standard user gets the error. Needs an administrator.

Point and Print copies the driver from the host to your PC when you connect. Since the Windows updates of 10 August 2021 this needs administrator rights by default. Microsoft made the change to address the vulnerability CVE-2021-34481, and a standard user is stopped at that step.

  1. Add the printer again as in Fix 2. When Windows asks for credentials or asks whether you trust the printer, enter an administrator user name and password.
  2. If no prompt appears, sign in to the PC with an administrator account and add the printer there once. The driver then stays on the PC.
  3. Sign back in as the standard user and add the printer again. No driver has to be installed now, as long as the host uses the same driver version.
  4. As an alternative, let an administrator install the manufacturer's current driver for the model before the user connects. Use the same driver version as the host where you can.
  5. If even an administrator cannot install the driver, check the policy Only use Package Point and print under Computer Configuration > Administrative Templates > Printers. Microsoft says it must be disabled in that case.
Policy window with Enabled selected and an option value: screenshot taken on Windows 11 26H2
A policy window in the Local Group Policy Editor. The printer policies named on this page open in the same kind of window.

How to open the editor and apply a policy, and what to do on Windows Home: Open the Local Group Policy Editor

Last resort: allow the driver for one connection, then lock it again

Microsoft lists a temporary value of 0 as a way to install drivers and warns that it makes the device vulnerable: while it is set, any user can install a printer driver from another computer. Use it only on your own network, connect the printer, and set it back at once. No restart is needed. Run the commands in Command Prompt opened as administrator.

1. Allow, only for the minutes you need

reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v RestrictDriverInstallationToAdministrators /t REG_DWORD /d 0 /f

2. Lock again right after the printer is connected

reg add "HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v RestrictDriverInstallationToAdministrators /t REG_DWORD /d 1 /f
  • On a work PC this value is set by your organisation. Ask the administrator to install the driver.
  • Value 1, or no value at all, is the protected default.
  • Value 0 does not override the Point and Print Restrictions policy, so that policy can still refuse the connection.

It worked if: The printer is added, and from then on the standard user can print without a prompt.

If not: If an administrator gets the same error too, the driver on the PC is the suspect: go to Fix 5.

Fix 5. Remove the old driver of this printer and install it fresh

10 to 15 minutesLow riskOne printer model fails while others on the same host connect. Needs an administrator.

When a driver for the model is already on your PC, Windows compares it with the host's and tries to reuse or update it. A damaged or half-updated copy makes the connection fail before it is complete. An independent write-up of this exact error found the cause in the driver on the client PC and cured it by deleting that driver.

  1. Open Settings > Bluetooth & devices > Printers & scanners, select the printer if it is listed and select Remove.
  2. Press Win + R, type printui /s /t2 and press Enter. The print server properties of your own PC open on the Drivers tab.
  3. Select the driver that belongs to the printer model and select Remove.
  4. Choose Remove driver and driver package and select OK.
  5. If Windows says the driver is in use, restart the Print Spooler as in Fix 1 and remove the driver right after the service starts.
  6. Restart the PC.
  7. Install the manufacturer's current driver for the model, or add the shared printer again as in Fix 2 so that the host supplies it.
A step we leave out

The same write-up also deletes the registry value PendingFileRenameOperations. That value lists file operations Windows has scheduled, and deleting it throws them away. The restart in step 6 lets Windows finish them.

Device Manager on Windows 11 with the Update Drivers window open for a printer and the options Search automatically for drivers and Browse my computer for drivers
Device Manager can also search for a newer driver. It finds only what Windows already has or what Windows Update offers.

The earlier version of this guide updated the driver in Device Manager: right-click the printer, select Update driver, then Search automatically for drivers. That is still worth a try after the removal. All ways to update, roll back or reinstall a driver: Update, roll back or reinstall a driver

It worked if: The old driver is gone from the Drivers tab, and the printer connects with a fresh copy.

If not: If the driver cannot be removed or the error stays, clear the cached server entry with Fix 6.

Fix 6. Delete the cached print server entry in the registry

10 minutesRead the warningThe error survives Fix 1 and Fix 5 on one PC, or the PC is a Remote Desktop server. Needs an administrator.

Windows keeps data about every shared printer connection under the key Client Side Rendering Print Provider. Microsoft's KB 2778831 ties this key to error 0x00000006: on Remote Desktop servers old entries pile up, and the fix does not remove them, so they must be deleted by hand. Administrators report the same cure on single PCs.

Back up the key first

You delete saved connection data. Printers from that server may have to be added again for every user of the PC. Export the key before you touch it, so that a double-click on the saved file brings it back: Back up the registry before editing it

  1. Press Win + R, type regedit and select OK. Select Yes if Windows asks for permission.
  2. Go to the key shown below these steps.
  3. Select the key Client Side Rendering Print Provider, open File > Export and save it to the desktop.
  4. Open Servers under that key. It holds one key for each print server or host this PC has connected to.
  5. Right-click the key with the name of your host and select Delete.
  6. Close Registry Editor and restart the Print Spooler as in Fix 1, or restart the PC.
  7. Add the printer again as in Fix 2.

Registry key

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Print\Providers\Client Side Rendering Print Provider
Run box in Windows with regedit typed in the Open field and the buttons OK, Cancel and Browse
The Run box with regedit. It looks the same on Windows 10 and Windows 11.
Export Registry File dialog with the Export range options: screenshot taken on Windows 11 26H2
Export range decides whether one key or the whole registry is saved. Screenshot: Windows 11 26H2.
On a Remote Desktop server

Microsoft describes entries stored for each user and printer that stay after the user has left. Deleting them is a job for the server's administrator, with a full export first. Microsoft's article covers Windows Server 2008 R2. We could not confirm from Microsoft that newer servers behave the same, although administrators report it.

It worked if: The printer is added without the Connect to Printer error.

If not: If nothing changed, import the saved file to restore the key and continue with Fix 7.

Fix 7. Windows 11 22H2 and later: let the print RPC connection through

15 to 30 minutesRead the warningWindows 11 22H2 or later, and the error began after the upgrade or the host is old. Needs an administrator on both sides.

From version 22H2, Windows 11 talks to other computers about printing by RPC over TCP. RPC over named pipes still exists but is off by default. Microsoft names blocked firewall ports as the most common problem with this change, so the host has to accept the TCP connection, or both sides have to agree on named pipes.

  1. On the host, turn on File and printer sharing as in step 5 of Fix 2.
  2. Ask whoever manages the firewall on the host and on the network to check two things: TCP port 135 is not blocked, and the ports 49152 to 65535 are open on the host.
  3. Restart both computers and add the printer again. If it connects, stop here: this is the setup Microsoft recommends.
  4. Only if the host cannot use RPC over TCP: on your PC, open the Local Group Policy Editor and go to Computer Configuration > Administrative Templates > Printers.
  5. Open Configure RPC connection settings, select Enabled and set the protocol to RpcOverNamedPipes.
  6. If the host itself runs Windows 11 22H2 or later, open Configure RPC listener settings on the host, select Enabled and allow RpcOverNamedPipesAndTcp.
  7. Restart both computers and add the printer again.
What you weaken, and how to undo it

Microsoft says of named pipes for printing: this configuration isn't recommended. TCP is the newer and more secure method. Use named pipes to prove the cause or to keep an old host alive until it is replaced. To undo, set both policies back to Not Configured, or delete the two registry values with the last commands below.

Your PC, Windows Home or by command: use named pipes (run as administrator)

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcUseNamedPipeProtocol /t REG_DWORD /d 1 /f

The host, if it runs Windows 11 22H2 or later: listen on named pipes and TCP

reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcProtocols /t REG_DWORD /d 0x7 /f

Undo: remove the values again

reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcUseNamedPipeProtocol /f
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Printers\RPC" /v RpcProtocols /f
Local Group Policy Editor with Computer Configuration and User Configuration: screenshot taken on Windows 11 26H2
The Local Group Policy Editor. The printer policies are under Computer Configuration, Administrative Templates, Printers.
  • Microsoft adds that named pipes may also need RpcAuthnLevelPrivacyEnabled set to 0 on the host and guest access in SMB. Both lower security further. If the test only works with them, replace the host.
  • Where the port range cannot be opened, the policy Configure RPC over TCP port ties the print connection to one port that you choose.
  • Opening the editor and applying a policy: Open the Local Group Policy Editor

It worked if: The printer connects from the Windows 11 PC, and older PCs keep working as before.

If not: If the printer has its own network connection, leave the share and use Fix 8. If not, see "If the error is still there".

Fix 8. Skip the share: add the printer by its own IP address

10 to 15 minutesLow riskThe printer has its own cable or Wi-Fi connection to the network. The driver usually needs an administrator.

The error belongs to the connection between your PC and the host. A printer with its own network address can be reached without any host: your PC gets its own driver, its own queue and a Standard TCP/IP port. Sign-in, RPC and Point and Print are then not involved at all.

Diagram of two routes to one printer: through a host PC that shares it, and straight from your PC to the IP address of the printer over a Standard TCP/IP port
The shared route needs the host for sign-in, RPC and the driver. The direct route needs only the printer's address and a driver on your PC.
  1. Find the printer's IP address on its control panel or on its network configuration page. The printer's manual says where.
  2. Open Settings > Bluetooth & devices > Printers & scanners, select Add device, then Add manually.
  3. Choose the option that adds a printer by its IP address or host name, enter the address and select Next.
  4. When Windows asks for the driver, select Windows Update to load the list, or Have Disk if you downloaded the manufacturer's driver. Pick the manufacturer and the model.
  5. Type a name for the printer and select Next.
  6. Select Do not share this printer, then Next.
  7. Select Print a test page, then Finish.

We could not confirm the exact wording of the option in step 3 on today's Windows 11 builds from a Microsoft page, so it is described and not quoted. The same result by PowerShell, opened as administrator, with your printer's address and the driver name exactly as the Drivers tab of Fix 5 shows it:

PowerShell: a TCP/IP port and a printer on it

Add-PrinterPort -Name "IP_192.168.1.50" -PrinterHostAddress "192.168.1.50"
Add-Printer -Name "Office printer" -DriverName "Name of the installed driver" -PortName "IP_192.168.1.50"
  • At work, ask first. A print server often counts pages or holds jobs. Printing around it may be against the rules.
  • The address must stay the same. If the router gives the printer a new address, the port points nowhere.
  • If this route fails too, suspect the driver on your PC. The write-up used for Fix 5 got error 0x00000002 here and solved both errors by deleting the driver.

It worked if: The test page prints, and the printer works even when the old host is switched off.

If not: If the driver cannot be installed, return to Fix 5. If the printer does not answer at its address, check its network settings.

Fix 9. Run the printer troubleshooter and bring both computers up to date

10 to 30 minutesNo riskNothing above helped. The troubleshooter runs for any user, updates need an administrator.

Microsoft says its printer troubleshooter runs diagnostics and attempts to fix most printer problems on its own. Updates matter here in a specific way: Microsoft states that a print server with the updates of 14 September 2021 or later refuses clients that lack the updates of 12 January 2021 or later.

  1. Open the Get Help app from the Start menu.
  2. In its search bar, enter printer troubleshooter and follow the questions.
  3. On your PC, open Settings > Windows Update and install everything that is offered.
  4. Do the same on the host. Microsoft recommends the latest cumulative update on both clients and servers.
  5. Restart both computers and add the printer again.
Windows 11 Settings, System, Troubleshoot, Other troubleshooters, with a Run button next to Printer in the Most frequent list
The older way in Settings: System, Troubleshoot, Other troubleshooters, Printer. Microsoft has been redirecting this entry to the Get Help app since 2023.

If a driver from Windows Update does not install, the update can be fetched by hand: Install an update from the Microsoft Update Catalog

It worked if: The troubleshooter reports a repair, or the printer connects after the updates.

If not: Collect the facts listed under "If the error is still there" and pass them to the administrator of the host.

If the error is still there: read the log and test the host

The message box hides the reason. The print service writes more in its own event logs, and four quick tests tell you on which side the fault is.

  1. Type event viewer in the search box on the taskbar and open Event Viewer.
  2. Open Applications and Services Logs > Microsoft > Windows > PrintService.
  3. Select Admin and look for errors at the time of your last attempt.
  4. Right-click Operational and select Enable Log, then try to add the printer once more and read the new entries.
Four tests that locate the fault
TestResultWhat it means
Add the same printer on another PCIt fails there tooThe host or the printer's share is broken. Work on the host.
Add another printer from the same hostIt connectsThe driver of the first model is the cause: Fix 5
Add the printer with an administrator account on your PCIt connectsDriver installation rights: Fix 4
Open \\ComputerName in File ExplorerIt does not open or asks for a passwordNetwork or sign-in: Fix 2 and Fix 3

When every PC fails, repair the host: restart its Print Spooler as in Fix 1, switch the printer off for 30 seconds and on again, and remove and add the printer on the host itself. One user on Microsoft's Q&A site reports a Windows Server 2019 host that logged PrintService event 808 after its files UNIDRV.DLL, UNIDRVUI.DLL and UNIRES.DLL had changed. Restoring them from a backup ended the error there.

  • What to send to the administrator or to support: the exact message, the time, the name and Windows version of your PC, the host name and share name, whether an administrator can connect, and the PrintService events.
  • If the Print Spooler stops or crashes at every attempt, check the Windows system files: Run DISM and SFC to repair Windows system files
  • It is not ink, paper or a cable to your PC. The error appears before any page is sent. A broken printer shows other messages, on the host.

How to undo every change made on this page

Fix 1, Fix 2, Fix 3 and Fix 9 leave nothing to undo. Put back what did not help in the other fixes, and always put back the two settings that lower security.

ChangeMade inHow to undo it
RestrictDriverInstallationToAdministrators set to 0Fix 4Run the second command of Fix 4 so that the value is 1 again. No restart is needed.
Policy Only use Package Point and print changedFix 4Set it back to the state you wrote down before
Printer driver removedFix 5Install the manufacturer's driver, or connect to the shared printer again
Key under Client Side Rendering Print Provider deletedFix 6Double-click the exported .reg file and restart the Print Spooler
RpcUseNamedPipeProtocol or RpcProtocols set, or the two RPC policies enabledFix 7Set the policies to Not Configured, or run the undo commands of Fix 7, then restart
Printer added by IP addressFix 8Select it under Printers & scanners and select Remove
Check the two security values before you close this page

Open Registry Editor and look at the two keys named in Fix 4 and Fix 7. RestrictDriverInstallationToAdministrators must be 1 or absent. RpcUseNamedPipeProtocol must be absent, unless you decided to keep named pipes for an old host.

How to keep error 0x00000006 from coming back

Do
  • Use an account with a password on the host, and save it on every PC that prints.
  • Keep the same printer driver version on the host and on the PCs. Microsoft recommends this against repeated driver prompts.
  • Install Windows updates on the host and on the PCs, not on one side only.
  • Let an administrator install the printer driver on each PC before standard users connect.
  • At home, connect to a network printer directly by its address. No host is needed then.
Do not
  • Do not leave RestrictDriverInstallationToAdministrators at 0 after a test.
  • Do not set RpcAuthnLevelPrivacyEnabled to 0 and do not enable insecure guest logons to make a printer work.
  • Do not switch off the firewall on the host or on your PC. Open the two things printing needs instead.
  • Do not delete files in spool\drivers by hand. Remove drivers on the Drivers tab, as in Fix 5.

A host that only works with named pipes, guest access or an unprotected driver setting is at the end of its life as a print server. Plan to replace it, and treat the workaround as temporary.

  • After a password change on the host, update the saved entry at once (Fix 3).
  • On Remote Desktop servers, an administrator should watch the size of the Client Side Rendering Print Provider key.

Frequently asked questions

What does error 0x00000006 mean?

It is Windows system error 6, ERROR_INVALID_HANDLE, and Microsoft's text for it is "The handle is invalid." In the printer message it means that your PC asked another computer for a shared printer and did not get a usable connection. The code does not say why: the host cannot be found, the sign-in fails, the print RPC connection is blocked, the driver cannot be installed, or your Print Spooler holds broken data.

Why can an administrator connect to the printer while a standard user gets 0x00000006?

Because adding a shared printer usually installs its driver, and since the Windows updates of 10 August 2021 only administrators may install printer drivers through Point and Print. Microsoft made this the default to address the vulnerability CVE-2021-34481. The clean answer is that an administrator installs the driver once. After that the standard user connects without a driver installation. Fix 4 has the steps.

Is it safe to set RestrictDriverInstallationToAdministrators to 0?

Not as a lasting setting. Microsoft writes that a value of 0 makes devices vulnerable and that no combination of other protections equals the default value of 1. With 0, any user of the PC can install a printer driver from another computer, the weakness that the 2021 Print Spooler updates, known as the PrintNightmare fixes, were meant to close. Microsoft itself lists a temporary 0 as one way to install drivers. If you use it, do so on your own network, connect the printer and set the value back to 1 in the same sitting.

Why did my shared printer stop working after the upgrade to Windows 11?

Most likely because of how Windows 11 talks to the host. From version 22H2 it uses RPC over TCP for printing and no longer uses named pipes by default. A firewall that blocks TCP port 135 or the ports 49152 to 65535, or a host that offers named pipes only, then breaks the connection. Version 24H2 also requires SMB signing, which hits hosts that allow guest access without a password. Fix 7 and Fix 3 cover both cases.

Should I turn off the firewall or the antivirus to fix 0x00000006?

No. The earlier version of this guide switched off Microsoft Defender Firewall, and we have removed that advice. A firewall does matter for this error, but in a narrow way: the host must accept file and printer sharing, and with Windows 11 22H2 or later the print RPC ports. Turn on File and printer sharing and open those ports. That solves the same problem and leaves the PC protected.

Can I delete the whole Client Side Rendering Print Provider key?

Administrators in forums report that they do, after a backup. We describe the smaller step: delete only the key of your print server under Servers. It removes the stale data that matters and leaves the connections to other servers alone. Either way, export the key first and expect that printers from the deleted server have to be added again for each user of the PC. Fix 6 has the path and the steps.

Does error 0x00000006 also appear on Windows 7, Windows 8.1 and Windows Server?

Yes. The code is older than Windows 10. Microsoft documents it for Windows 8, Windows 8.1 and Windows Server 2012 when connecting to an IPP print server, fixed by hotfix 2973940. It also documents it for Remote Desktop servers on Windows Server 2008 R2, where a registry key grows too large (KB 2778831). Reports from Windows 7 point to a damaged driver on the client. Fix 5 and Fix 6 are the ones that carry over to these old systems.

What can I do about 0x00000006 without an administrator password?

Two fixes are yours. Check that the host opens in File Explorer and add the printer by its exact share path (Fix 2), and replace a wrong saved password (Fix 3). If the error stays, write down the exact message, the time, the host and share name and whether a colleague's PC connects. Give that to the administrator: the spooler, the driver, the registry key and the RPC settings all need administrator rights.

Sources

  1. Microsoft Learn: System Error Codes (0-499), ERROR_INVALID_HANDLE (learn.microsoft.com)
  2. Microsoft Support: Fix shared printer connection problems in Windows (support.microsoft.com)
  3. Microsoft Support: Fix printer connection and printing problems in Windows (support.microsoft.com)

Did this fix work?

One click, no account. It tells the next reader which guides are worth their time.

We show the result once 20 readers have answered.
Still broken? Describe your case with the exact error text.

Questions and experiences: fix 0x00000006 Printer error in Windows

Still broken, or found a fix we did not cover? Ask here: members and our editors answer. Reading is open; writing needs a free account.

0 comments

…

4,322 members already hereThey read, write, comment and vote. 0 verified · 31 joined this year