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

Outdated cached credentials are used when you run an elevated task

· 52CE 我爱测

Helps to resolve the issue in which the outdated cached credentials are used when you run an elevated task.

This article helps to resolve the issue in which outdated cached credentials are used when you run an elevated task.

Applies to:   Supported versions of Windows Server and Windows Client

You log on to a Windows computer using a non-administrator account and run an elevated task by selecting the Run as Administrator option. Then, you are prompted for an administrator credential, and you enter an administrator account credential to continue the operation.

Note: When you use an administrator account for the first time on the computer, the administrator group membership and password are cached locally on the computer.

When you run an elevated task by selecting the Run as Administrator option again, you're still prompted for an administrator credential.

The cached credentials aren't updated

The cached credentials aren't updated when you run an elevated task. The cached credentials aren't updated on the computer even when the group membership for the administrator account is changed in the domain environment. Therefore, the cached group membership is used on the computer.

Create a registry entry for authenticating the user credentials at a domain controller first

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, you can create a registry entry for authenticating the user credentials at a domain controller first by using the following steps:

  1. Select the Windows logo key+<kbd>R</kbd> and type regedit in the Run dialog box, and then press Enter.

    [!NOTE] If you're prompted for an administrator password, provide the password. If you're prompted for a confirmation, provide the confirmation.

  2. Locate and select the registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System

  3. On the Edit menu, point to New, and then select DWORD (32-bit) Value.

  4. Type InteractiveLogonFirst and press Enter.

  5. Right-click InteractiveLogonFirst and select Modify.

  6. Type 1 in the Value data box and select OK.

  7. Exit Registry Editor.

Note: When the value of the InteractiveLogonFirst registry entry is set to 1, the domain controller verification is required when you run an elevated task. If the domain controller isn't available, the system uses the cached credentials internally.

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)

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

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