Monday, 21 October 2024

How to fix error 0x0000011b

 How to fix error 0x0000011b when adding networked printer solution in the command line



The error 0x0000011b typically occurs when adding a network printer on Windows due to security updates that block certain network printing configurations. This error is often associated with issues in the Windows Print Spooler service and can be resolved by adjusting certain registry settings and disabling the enforcement of printer driver security updates.

Steps to fix the error using the Command Line:

  1. Run Command Prompt as Administrator:

    • Press Win + X, then select Command Prompt (Admin) or Windows PowerShell (Admin).
  2. Modify the Windows Registry to Disable RPC (Remote Procedure Call) Authentication for Network Printers:

    • Type the following command to create a new registry entry that disables RPC security:
    cmd
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f

    This command sets the RpcAuthnLevelPrivacyEnabled value to 0, which disables the requirement for high-level RPC authentication for printers.

  3. Restart the Print Spooler Service:

    • After modifying the registry, restart the Print Spooler service with the following commands:
    cmd
    net stop spooler net start spooler
  4. Try Adding the Printer Again:

    • Now, try to add the network printer again, and it should connect without throwing the 0x0000011b error.

Additional Troubleshooting (if the issue persists):

  • Disable Print Spooler Isolation: You can disable print spooler isolation by adding another registry key:

    cmd
    reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print" /v DisablePrintSpoolerIsolation /t REG_DWORD /d 1 /f
  • Uninstall the Problematic Security Update: Some users reported that uninstalling specific Windows updates (e.g., KB5005565) resolved the issue. If you wish to uninstall the update via command line:

    cmd
    wusa /uninstall /kb:5005565

This should help resolve the 0x0000011b error when connecting to a network printer. Let me know if you encounter any issues!

No comments:

Post a Comment