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

Errors when you connect to a shared printer by using a CNAME record

· 52CE 我爱测

This article describes two issues that occur when you connect to a shared printer by using a CNAME record

This article provides a resolution for fixing the errors when you connect to a shared printer by using a CNAME record.

Applies to:   Windows Server 2012 R2, Windows 7 Service Pack 1
Original KB number:   2965564

Summary

This article describes two error messages that occur when you connect to a shared printer by using a CNAME record.

Symptoms

Error 1

You provide an alternative Universal Naming Convention UNC (UNC) path for a Windows Server 2008 R2-based printer server. The UNC path uses a CNAME DNS record. The following error message is received when clients try to connect to the printer:

Operation could not be completed (error 0x00000709). Double-check the printer name and make sure that the printer is connected to the network.

For more information about this issue, click the following article number to view the article in the Microsoft Knowledge Base:

2546625"Operation could not be completed (error 0x00000709)" error when you use a CNAME record for a print server in Windows Server 2008 R2

Error 2

Clients receive the following error message when you use a CNAME DNS record to connect to a printer server that is running Windows Server 2008 R2 or Windows 7:

Windows couldn't connect to the printer. Check the printer name and try again. If this is a network printer, make sure that the printer is turned on, and that the printer address is correct.

For more information about this issue, click the following article number to view the article in the Microsoft Knowledge Base:

979602 Error message when you try to connect to a printer by using an alias (CNAME) resource record: "Windows couldn't connect to the printer"

Resolution

To resolve these issues, use the following commands:

reg add hklm\system\currentcontrolset\control\print /v DnsOnWire /t REG_DWORD /d 1
reg add hklm\system\currentcontrolset\services\lanmanserver\parameters /v DisableStrictNameChecking /t REG_DWORD /d 1
reg add hklm\system\currentcontrolset\services\lanmanserver\parameters /v OptionalNames /t REG_SZ /d " aliasname "

Note: For third-party DNS providers, you may have to use QWord instead of DWord . Therefore, you should use QWord instead of DWord for these commands.

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 Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

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

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