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.
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
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:
Select the Windows logo key+R and type regedit in the Run dialog box, and then press Enter.
If you're prompted for an administrator password, provide the password. If you're prompted for a confirmation, provide the confirmation.
Locate and select the registry subkey:
On the Edit menu, point to New, and then select DWORD (32-bit) Value.
Type InteractiveLogonFirst and press Enter.
Right-click InteractiveLogonFirst and select Modify.
Type 1 in the Value data box and select OK.
Exit Registry Editor.
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.