При подключении общего сетевого принтера с другого компьютера пользователи могут столкнуться с ошибкой
Windows не удается подключиться к принтеру
с кодами 0x0000011b или 0x00000002. В этой статье мы рассмотрим типовые средства исправления ошибки подключения сетевого принтера Windows.
Содержание:
- Ошибка 0x0000011b: Windows не может подключить сетевой принтер
- Ошибка 0x00000002 при установке сетевого принтера
- Подключение сетевого принтера через локальный порт
Ошибка 0x0000011b: Windows не может подключить сетевой принтер
В 2021 года Microsoft выпустило ряд обновлений безопасности для исправлений уязвимостей в службе Print Spooler под общим названием PrintNightmare. После установки этих обновлений при попытке подключения сетевого принтера пользователи стали массово сталкиваться с ошибкой 0x0000011b.
Connect to Printer Windows cannot connect to the printer. Operation failed with error 0x0000011b.
Microsoft рекомендует использовать на принт-сервере (компьютере, на котором открыт общий доступ к принтеру) только драйвера принтера типа Type 4, для установки которых не нужны права администратора на стороне клиента. Обновите драйвера ваших принтеров до Type 4.
Если для принтера доступны только драйвера типа
Type 3
, можно снизить уровень безопасности на принт сервере, создав параметр реестра RpcAuthnLevelPrivacyEnabled со значением 0:
REG ADD "HKLM\System\CurrentControlSet\Control\Print" /v RpcAuthnLevelPrivacyEnabled /t REG_DWORD /d 0 /f
Перезапустите службу диспетчер печати:
Restart-Service Spooler -Force
После этого попробуйте еще раз подключить сетевой принтер на клиенте.
После подключения сетевого принтера клиенту, верните значение RpcAuthnLevelPrivacyEnabled =0 на сервере, чтобы закрыть уязвимость.
Обновлений безопасности PrintNightmare также блокирует установку драйверов сетевых принтеров под пользователями без прав администратора. Чтобы временно разрешить установку принтеров под пользователями, выполнив команду:
reg add "HKLM\Software\Policies\Microsoft\Windows NT\Printers\PointAndPrint" /v RestrictDriverInstallationToAdministrators /t REG_DWORD /d 0 /f
После подключения принтера верните значение RestrictDriverInstallationToAdministrators = 1.
Ошибка 0x00000002 при установке сетевого принтера
Другая распространенная ошибка подключения сетевого принтера — 0x00000002. Эта ошибка появляется при подключении сетевого принтера через UNC путь в формате
\\computername
, после того, как вы нажали Подключить:
Connect to Printer Windows cannot connect to the printer. Operation failed with error 0x00000002.
Установка принтера Windows не удается подключиться к принтеру В ходе операции произошла ошибка 0x00000002
Ошибка 0x00000002 обычно указывает, что драйвер для данного принтера, установленный на компьютере поврежден. Удалите этот драйвер из хранилища драйверов:
printui.exe /s /t2
Найдите драйвера принтера, который вы пытались установить и удалите его (Remove -> Remove driver and driver package).
Для удаления драйвера принтера можно также использовать PowerShell команду:
Remove-PrinterDriver -Name "HP Universal Printing PCL 6"
Если есть принтера, который используют этот драйвер, их придется также предварительно удалить.
Перезапустите диспетчер печати (
net stop spooler & net start spooler
) и попытайтесь еще раз подключить принтер.
Если при подключении принтера опять появится ошибка, очистить записи старого драйвера в реестре:
- Запустите
regedit.exe
и удалите ветку реестра HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations - Если в папке c:\Windows\System32\spool\prtprocs\x64 есть подкаталоги с именами от 1 до 499, удалите все эти подкаталоги и файлы кроме winprint.dll
- Удалите все Print Processors и драйвера (за исключением winprint) из ветки HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments
- Перезагрузите компьютер и установите принтер
Подключение сетевого принтера через локальный порт
В качестве простого обходного решения при ошибках подключения сетевого принтера можно попробовать подключить принтер через локальный порт с UNC путем.
Для этого вам нужно получить полное UNC имя сетевого принтера. Откройте командную строку и выполните следующую команду чтобы вывести список принтеров на удаленном компьютере:
net view \\192.168.13.200
В этом примере полное UNC имя сетевого принтера выглядит так:
\\192.168.13.200\HPM2727_1
(можно использовать имя компьютера вместо IP).
Установите консоль управления принтерами с помощью команды:
dism /Online /add-Capability /CapabilityName:Print.Management.Console~~~~0.0.1.0
Запустите консоль
printmanagement.msc
и перейдите в раздел Print Servers -> Printers. Создайте новый принтер.
Выберите тип порты Local port, а в качестве имени порта укажите UNC путь к сетевому принтеру.
Продолжите установку. Выберите (или установите) драйвер печати.
Задайте имя принтера.
Проверьте, работает ли сетевая печать.
-
Written By
-
Approved By
Mithilesh Tata
-
Updated on
January 9th, 2024 -
Reading Time:
4 minutes
Summary: Nowadays, multiple users get error 0x00000002, or Windows cannot generally connect to the printer 0x00000002 error. If you are among them, you have landed on the correct page. Through this blog, we have provided the solution to resolve the following error of Windows, which arises when connecting a shared network printer from a remote computer. Additionally, we have covered the perfect automated solution, such as the Hard Drive Recovery tool, which professionals highly recommend. So before proceeding with the methods, you should be aware of what exactly this error code is and what exactly causes this error. Download Now Purchase Now
What is the Printer Error 0x00000002?
This is a runtime error code which is a hexadecimal representation of the occurred issue. This issue takes place whenever we try to connect a printer to our Windows system. It means that the driver, installed for the printer is corrupted. There are multiple reasons for the corruption of the printer driver. The error code contains a numeric error number and description.
Why Windows Cannot Connect to the Printer?
Corruption in installed printer drivers over your system is the core and root cause of the issue. The corrupted System files are the reason for the problem. There could be a lot more reasons than the corrupt driver, I’ve listed them below:
- Improper Installation of any application.
- Incorrect deletion of any software or application.
- Abnormal system shutdown.
- Software updation.
- Antivirus scan.
Methods to Fix Error 0x00000002
After knowing all the possible reasons for the issue let’s focus on the methods to fix this issue. We will dig to the roots of the issue and will try to troubleshoot those reasons for fixing the error code.
1. Restart your Computer
The initial step will be restarting the computer. By restarting the computer, there is a possibility that the issue is fixed. If the issue doesn’t fix try other methods.
2. Create a New Local Port
By creating a new local port the error could be solved. To create it, just follow the below steps:
- Press Win+R and type the control panel in the box. Then open the resultant control panel.
- Now double-click on the devices and printer.
- Click on Add a Printer and then choose, Add a Local Printer.
- Then create a new Port by selecting the local port as the type of the port.
- Now provide a Port name in the box and give the address in the following format: \\[IP address of host computer][Share Name of printer.
- Now, click on the Next button.
- To finish the installation go through the instructions and select the correct driver from the list.
3. Remove the Printer Driver
By removing the old and corrupt printer driver, you can find the answer to your query How do I fix error 0x00000002? It will reinstall the driver for the printer whenever you will connect the printer next time. To remove the driver you can follow these steps:
- Press Win+R and type msc in the appeared Run dialog box. Then click on the OK button.
- Then click on All the drivers, appearing in the left pane.
- Right-click on the printer driver appearing in the right pane and select delete from the pop-up menu.
- Again connect the printer and install the new driver.
4. Try to Update Drivers and Applications
By updating the drivers, you will replace the old drivers with new ones and it will remove the error. There is a possibility that the error message is due to the old version of the drivers and Windows service pack. For updating the driver, all you need to do is to follow the below steps:
- In the search box type Windows update.
- Now, click on the Windows updates from the results.
- select check for updates and install the available updates.
5. Install a fresh Windows
If nothing works in your case, you can reinstall the Windows on your system. Doing so will remove all the system software and data from your machine. All the old system software will be replaced with the fresh install of the Windows. But the problem is that all your data will be lost and deleted.
The Aftermath of This Printer Error
It’s an issue that is tough to resolve. But by following the above methods you can easily fix the error. The aftereffect of the error is system file corruption and data loss. If the problem is not solvable using the above tactics, then you have to install a fresh window, which will remove all the previous data.
However, if all the above manual procedures do not succeed, then the only remaining option is to use a reliable and professional solution such as the Hard Drive Recovery Tool. This software helps to restore deleted, inaccessible, lost data from hard drives, SSDs, Memory Cards, USB drives, and other storage media drives. It has the utility to support the recovery of document emails, archive files, and database files from Windows Hard drives.
Conclusion
Even if it’s a stubborn problem, but not an unsolvable one. If you go through all the methods, that I’ve provided you can fix error 0x00000002. Here, I mentioned the professional solution for data recovery. This solution also resolves to stop the 0x00000003 error in Windows. But keep in mind to follow all the steps. Hope it will help you to troubleshoot the error. Thanks for reading this article.
Related Post
Последнее время много пользователей при подключении сетевого принтера начали получать уведомление об ошибке 0x00000002. Причём проблема существует практически на всех версиях Windows. Очень редко это может указывать на поломку самого устройства. Однако в большинстве случаев причина в драйверах.
Ошибка принтера 0x00000002
1. Нажимаем Win+R, печатаем «services.msc» и щелкаем «Ок».
2. В перечне находим «Диспетчер печати» и нажимаем на него ЛКМ.
3. По левую сторону находим строку «Перезапустить службу» и кликаем по ней. В большинстве случаев после этого проблема ликвидируется.
4. Теперь опять вызываем окно «Выполнить» с помощью сочетания Win+R. Прописываем «printui.exe /s /t2» и щелкаем «Ок».
5. В разделе «Драйвер» находим свой принтер и нажимаем «Удалить».
6. В следующем окне ставим отметку на «Удалить драйвер и пакет драйвера» и нажимаем Enter.
7. Теперь в третий раз жмём Win+R, вводим «%Windir%\system32\spool\ и подтверждаем.
8. С открывшейся папки удаляем все содержимое и перезапускаем ПК. Пробуем заново подключить принтер.
Если вышеописанные действия не помогли, то делаем следующее:
1. Открываем проводник и проходим по маршруту
C:\Windows\System32\spool\prtprocs\x64.
2. Здесь нам необходимо удалить директории начиная с первой и заканчивая 500-ой.
3. Опять пробуем воспользоваться принтером. При этом служба печати должна быть выключена.
Если проблема так и не решена, приступаем к таким действиям:
1. Win+R. Вводим «regedit». Подтверждаем действие.
2. Проходим по маршруту
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments.
3. Избавляемся от всех каталогов, кроме winprint, его оставляем.
4. Теперь переходим
HKEY_LOCAL_MACHINE\CurrentControlSet\Control\Session Manager. Тут избавляемся от PendingFileRenameOperations.
5. Перезагружаем сервак печати и проверяем результат.
По окончанию произведённых действий устанавливаем новые драйвера. Как обычно, лучше их скачать на сайте производителя принтера. К тому же можно использовать универсальные драйвера. Достаточно часто производители печатающей техники их выпускают. Также иногда ошибка может появляться из-за неверно выбранной битности драйвера.
Если причиной появления ошибки были драйвера, то сейчас, скорее всего, у вас все заработает. В случае если проблема не в драйверах, то пробуем следующее:
1. Нажимаем Win+Pause. Щелкаем на «Дополнительные параметры системы».
2. В открывшемся окне выбираем «Изменить».
3. Теперь вписываем название рабочей группы и нажимаем «Ок».
4. Проверяем работу принтера.
Такой метод будет работать если ПК вышел из рабочей группы. Мы просто вернули его назад.
Иногда могут помочь такие действия:
1. Нажимаем Win+I. Здесь выбираем «Устройства». После «Принтеры и сканеры». Жмём «Добавить «.
2. Windows скорее всего найдёт ваше устройство. Однако, если нет, то ставим отметку на «Необходимый принтер отсутствует в списке».
3. Теперь ставим чекбокс на «Добавить локальный или сетевой принтер с параметрами, заданными вручную» и переходим к следующему шагу.
4. Тут нажимаем «Создать новый порт» — «Локальный порт».
5. После нажатия на «Ок» будет предложено указать название порта. Вводим в таком формате «\\IP-адрес ПК\название принтера».
6. Теперь винда предложит вам драйвера. Выбираем нужный. В случае если такового не имеется выбираем «Установить с диска» и указываем путь к заранее скачанному каталогу с дровами.
Причиной может быть также срабатывание брандмауэра, антивируса и файервола. В таком случае все просто, останавливаем их работу и пробуем заново подключиться.
Изредка проблема исчезает после установки обновлений операционной системы. Проще всего это конечно сделать через центр обновлений.
With the recent launch of Windows 11 or Windows 10 version 21H2, printer errors are occurring quite often. One such problem that most users are encountering these days is Error 0x00000002. They receive this issue only while attempting to connect Windows to a shared printer. If you are one such user and are wondering what to do next, we suggest applying the solutions discussed in this guide.
What does error 0x00000002 mean? When does it occur?
The error 0x00000002 mostly occurs when there is some corruption inside the printer-related registries or the print drivers have become outdated or corrupted. Upon receiving this error code, you may see an error message as depicted below –
Now that you know when this printer error occurs, let’s explore the ways by which you can resolve this issue on Windows 11 or 10 PC.
Fix Printer Connectivity Error 0x00000002
If you are getting an error code 0x00000002 while connecting your PC to a shared Printer, try out these solutions sequentially and see if any fixes this issue.
1] Remove the corrupted Printer driver
Printer errors often occur when the related drivers have been corrupted somehow. To resolve this issue then, you must uninstall such drivers by following these easy steps –
- Press Win + R to launch the Run dialog.
- Type CMD and press Ctrl + Shift + Enter keys altogether.
- When the UAC window prompts, hit Yes.
- Doing so will launch the Command Prompt as administrator.
- Copy/paste the command below and press Enter –
printui.exe /s /t2
- The Print Server Properties window will appear immediately afterward.
- Select the installed printer driver and then hit the Remove button.
- A pop-up window “Remove Driver and Package” will appear next.
- Check the box – “Remove driver and driver package” and hit OK.
- The chosen printer driver will be uninstalled from your computer.
Tip: Uninstall printer drivers via PowerShell (Admin)
If you find the above steps complex, run this single line code on Windows PowerShell having administrative privileges –
Remove-PrinterDriver -Name "Printer_Driver_Name"
Now that you have removed the printer driver, restart the print spooler service. To do so, run these codes on the elevated Command Prompt –
net stop spooler
net start spooler
- Restart your PC next so that the recent changes come into effect from the next login.
Note: The removed driver will install successfully when you sign back into your computer.
2] Tweak Printer registries
In case the error 0x00000002 appears again while connecting Windows to the printer, this might be due to the corrupted registry entries. To repair such entries, do the following –
- Press Win + X, and hit the option – Run.
- Type
regedit
and hit OK to enter the Registry Editor. - On the left navigation pane, browse to the below path –
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
- Look for any subfolders with names starting with “1” to “499” along with these paths –
c:\Windows\System32\spool\prtprocs\x64
- If you do find any such folder, right-click on each one of them, and hit the delete button.
Note: While deleting subfolders, make sure not to delete this file – winprint.dll
.
- After you are done deleting all the entries, browse to the below path, and delete all Print Processors except WinPrint.
HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments
- Reboot your PC next to confirm the changes made so far.
- Sign back into your device again and see if you can now connect to a shared printer on your Windows PC.
I hope this guide helps to resolve error 0x00000002 on your Windows PC.
Подключение сетевого принтера через стандартные TCP/IP порт или принт-сервер обычно не вызывает проблем, особенно у тех, кто делает это по долгу службы постоянно. Но последнее время, многие сталкиваются с сообщением об ошибке 0x00000002, которая часто стала появляться у пользователей компьютеров, работающих на операционной системе Windows версии 7, 8 и 10. Она означает, что драйвер подключаемого печатного устройства установлен не корректно или поврежден.
Что же делать в данной ситуации и как исправить ошибку?
Первое, что необходимо сделать — просто удалить драйвер. Для этого сначала:
- Зайдите в «Устройства и принтеры» и удалите принтер, который пытаетесь подключить.
- Перезапустив «Диспетчер печати», в строке поиска меню «Пуск» найдите printui /s /t2.
- Во вкладке «Драйверы» удалите драйвер и пакет драйвера вашего принтера.
- В строке поиска меню «Пуск» найдите printmanagement.msc.
- В «Управление печатью» зайдите в «Настраиваемые фильтры», а затем во «Все драйверы».
- Кликните правой кнопкой мышки по нужному драйверу и нажмите «Удалить пакет драйвера».
После этого перезапустите диспетчер печати и повторите процедуру подключения сетевого принтера. Если вторая попытка тоже не увенчается успехом, тогда нужно будет пройти более сложный путь:
- Удалить ветку HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
- Удалить подкаталоги от 1 до 499 и файлы, оставив только winprint.dll, в папке c:\Windows\System32\spool\prtprocs\x64
- Удалить Print Processors и драйвера, оставив winprint, из ветки HKLM\SYSTEM\CurrentControlSet\Control\Print\Environments
- Перезагрузив компьютер, установите сетевой принтер.
Помните, если во время подключения вы сталкиваетесь с ошибкой 0x00000002 и пытаетесь ее исправить, необходимо обезопасить себя от всех неправильных действий. Для этого, прежде, чем сделать любые изменения реестра, делайте резервную копию ветки реестра или просто создайте точку восстановления. В этом случае, у вас будет возможность вернуться назад и попробовать другой способ установки.