Cached credentials are always used when you run an elevated task in Windows 7 or in Windows Server 2008 R2

Symptoms

Consider the following scenario:
  • You log on to a computer that is running Windows 7 or Windows Server 2008 R2 by using a non-administrator account.
  • You run an elevated task by selecting the Run as Administrator option. Then, you are prompted for an administrator credential.
  • You enter domain administrator account credentials to continue the operation.
    Note When you use an administrator account for the first time on the computer, the administrator group membership is cached locally on the computer.
  • Later, you run an elevated task by selecting the Run as Administrator option.
  • You are prompted for an administrator credential.
In this scenario, the cached credentials are always used when you run elevated tasks by selecting the Run as Administrator option. The cached credentials cannot be 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. 

Note You can only update the cached credentials by using the administrator account to log on to the computer interactively.

Resolution

Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running Windows 7 Service Pack 1 (SP1) or Windows Server 2008 R2 SP1.

For more information about how to obtain a Windows 7 or Windows Server 2008 R2 service pack, click the following article number to view the article in the Microsoft Knowledge Base:

976932 Information about Service Pack 1 for Windows 7 and for Windows Server 2008 R2

Registry information

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 added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
After apply this hotfix, you must create a registry key before you restart the computer. To do this, follow these steps:
  1. Click Startstart button , type regedit in the Search programs and files box, and then press ENTER.
    UAC If you are prompted for an administrator password, type the password. If you are prompted for confirmation, provide confirmation.
  2. Locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System
  3. On the Edit menu, point to New, and then click REG_DWORD Value.
  4. Type InteractiveLogonFirst, and then press ENTER.
  5. Right-click InteractiveLogonFirst, and then click Modify.
  6. In the Value data box, type 1, and then click OK.
  7. Exit Registry Editor.
Note When the value of the InteractiveLogonFirst registry entry is set to 1, an interactive logon is required when you run an elevated task. If the domain controller is not available, the system uses the cached credentials internally.






Restart requirement

You must restart the computer after you apply this hotfix.




Hotfix replacement information

This hotfix does not replace a previously released hotfix.
File information

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional file information
Properties

Article ID: 2824491 - Last Review: May 14, 2013 - Revision: 1

Feedback