大网数据广告活动
打印与设备

A printer driver cannot be installed through Windows Update in Windows Server

· 52CE 我爱测

Discusses an issue in which a printer drive cannot be installed from Windows Update in Windows Server 2016 and Windows Server 2019. Provides a workaround.

This article provides a workaround to an issue in which a printer drive cannot be installed from Windows Update in Windows Server 2016 and Windows Server 2019.

Applies to:   Windows Server 2019, Windows Server 2016
Original KB number:   4033208

Symptoms

Consider the following scenario:

  • You install a printer by using the Add a printer using the TCP/IP address or hostname option in the Add Printer Wizard.
  • On the Type a printer hostname or IP address page, you select TCP/IP device as the Device type, and then you enter the hostname or IP address for the printer.
  • You select the Query the printer and automatically select the driver to use check box.

In this scenario, the printer driver that is provided through Windows Update does not install automatically. Instead, one of the following actions occurs:

  • You are prompted to use an inbox Class Driver.
  • If no inbox Class Driver exists, you are prompted to select the driver to be used.

Cause

Windows searches for driver .inf files through Windows Update only for printers that are installed by using a USB or WSD (Web Services Device) connection. Windows searches in the local INF folder only for printers that are installed as a TCP/IP device.

Workaround

On the Printer Driver Selection page, click the Windows Update button to download the list of drivers that are available on Windows Update, and then select the make and model of your printer.

More Information

For enterprises that use the TCP/IP device option, the desired drivers can be stored on a network location, and that location can be appended to the DevicePath value. To do this, follow these steps:

  1. In Registry Editor, locate the following subkey:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\DevicePath
  2. Update the subkey to add value data for the local path for the driver installation.

For example, change the value data from the default entry (%systemroot%\inf) to the following path:
%systemroot%\inf;\\server\DriverShare

In addition, the .inf file must have an entry that lists only the HWID of the printer. For example:

[Manufacturer] "Contoso"=Model,NTamd64 [Model.NTamd64] "Contoso Model 1 V4 PS" = INSTALL_SECTION_1,usbprint\Contoso_Laser_1 "Contoso Model 1 V4 PS" = INSTALL_SECTION_1,wsdprint\Contoso_Laser_1 "Contoso Model 1 V4 PS" = INSTALL_SECTION_1,Contoso_Laser_1 // this line is needed for "TCP/IP device"-installed printers.

You must contact the printer manufacturer for an updated driver that has an updated .inf file. After you obtain and store the correct file, the Add Printer Wizard can preselect the driver that is associated with the printer's HWID.

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for User Experience issues.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。