大网数据广告活动
域与目录服务

Fail to log on to a local administrator account

· 52CE 我爱测

Works around an issue that occurs after you log on to a local administrator domain account.

This article helps solve access denied errors that occur after you log on to a local administrator domain account.

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

Symptoms

Consider the following scenario:

  • You create a local administrator account on a computer this is running Windows Server 2003 or later operating system.
  • You log on by using the local administrator account instead of the built-in Administrator account and then configure the server to be the first domain controller in a new domain or forest. As expected, this local account becomes a domain account.
  • You use this domain account to log on.
  • You try to perform various Active Directory Domain Services (AD DS) operations.

In this scenario, you receive access denied errors.

Cause

When you configure the first domain controller in a forest or a new domain, the user's local account is converted to a domain security principal and is added to matching domain built-in groups, such as Users and Administrators. Because there are no built-in local Schema Admins, Domain Admins, or Enterprise Admins groups, these memberships are not updated in the domain groups, and you are not added to the Domain Admins group.

Workaround

To work around this behavior, use Dsa.msc, Dsac.exe, or the Active Directory Windows PowerShell module to add the user to the Domain Admins and Enterprise Admins groups as necessary. We do not recommend that you add the user to the Schema Admins group unless you are currently performing a schema upgrade or modification.

After you log off and then log back on, the group membership changes will take effect.

More information

This behavior is expected and is by design.

Although this behavior has always been present in AD DS, improved security procedures in business networks have exposed the behavior to customers who follow Microsoft best practices for using the built-in Administrator account.

The built-in Administrator account makes sure that at least one user has full administrative group membership in a new forest.

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)

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

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