大网数据广告活动
网络与域名解析

Error 2250 (NERR_UseNotFound) when LanmanWorkstation service fails to start

· 52CE 我爱测

Describes how to resolve an issue in which the LanManWorkstation service doesn't start and Windows generates Error 2250.

This article describes how to resolve an issue in which the LanManWorkstation service doesn't start and Windows generates Error 2250.

Applies to:   Windows Server 2022, Windows Server 2019, Windows 11, Windows 10

Symptoms

The LanmanWorkstation service doesn't start, and Windows generates the following message:

Windows could not start the Workstation on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 2250.

Note:
This behavior might affect other services in addition to the LanmanWorkstation service.

Cause

This error typically indicates that the following volatile registry entry is missing:

Registry subkey: HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName

  • Registry type: REG_SZ
  • Registry key: ComputerName
  • Value: <Computer_Name>

This value should be the same value as the value of the following non-volatile entry:

Registry subkey: HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName

  • Registry type: REG_SZ
  • Registry key: ComputerName
  • Value: <Computer_Name>

Note:
In both registry entries, <Computer_Name> represents the name of the local computer.

Resolution

Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For protection, back up the registry before you modify it so that you can restore it if a problem occurs. For more information about how to back up and restore the registry, see How to back up and restore the registry in Windows.

To resolve this issue, add the missing registry entry on the affected computer. Either use Registry Editor to manually create the entry, or open an administrative Command Prompt window, and then run the following command:

reg add HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName /t REG_SZ /v ComputerName /d <Computer_Name> /f

Note:
In this command, <Computer_Name> represents the name of the local computer.

After you edit the registry, restart the computer.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors (upstream author metadata: kaushika-msft). 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)

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

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