<p><a href="http://wincert.net/wp-content/uploads/2015/01/microsoft-windows21.jpg"><img class="alignnone size-full wp-image-561" src="http://wincert.net/wp-content/uploads/2015/01/microsoft-windows21.jpg" alt="microsoft windows box" width="720" height="340" /></a></p>
<p>When trying to use the Run as Administrator elevation you may experience the consent.exe hangs and that consent box never appears.</p>
<p>You may see the process in the task manager, but you are unable to stop it. The only thing you can do is to restart your machine.</p>
<p>Solution:</p>
<p>Repair the catalog database by using Esentutl</p>
<p>To repair the catalog database by using Esentutl:</p>
<p>1. Click <strong>Start</strong>, point to <strong>All Programs</strong>, and then click <strong>Accessories</strong>.</p>
<p>2. Right-click <strong>Command Prompt</strong>, and then click <strong>Run as administrator</strong>.</p>
<p>3. If the <strong>User Account Control</strong> dialog box appears, confirm that the action it displays is what you want, and then click <strong>Continue</strong>.</p>
<p>4. In the command prompt window, type <strong>net stop cryptsvc</strong> to stop Cryptographic Services, and then press ENTER.</p>
<p>5. Type <strong>esentutl /p <;%systemroot%>;\System32\catroot2\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\catdb</strong>, and then press ENTER.</p>
<p>By default, <em>%systemroot%</em> is located at C:\Windows.</p>
<p>6. Click <strong>OK</strong> to confirm that you should run this tool only on databases that are corrupt.</p>
<p>7. If Esentutl reports that the catalog database is still corrupt, you should use one of the following procedures to create a new catroot2 folder.</p>
<p>8. Type <strong>net start cryptsvc </strong>to start Cryptographic Services, and then press ENTER. <!--more--></p>
<p><strong>Create a new catroot2 folder</strong></p>
<p>To create a new catroot2 folder:</p>
<p>1. Click <strong>Start</strong>, point to <strong>Administrative Tools</strong>, and then click <strong>Services</strong>.</p>
<p>2. Right-click <strong>Cryptographic Services</strong>, and then click <strong>Stop</strong>.</p>
<p>3. Click <strong>Start</strong>, and then click <strong>Computer</strong>.</p>
<p>4. Navigate to <em>%systemroot%</em>\System32.</p>
<p>By default, <em>%systemroot%</em> is located at C:\Windows.</p>
<p>5. Rename the catroot2 folder to catroot2.old.</p>
<p>6. In the Services snap-in console, right-click <strong>Cryptographic Services</strong>, and then click <strong>Start</strong>.</p>
<p><strong>Create a new catroot2 folder by using the command prompt</strong></p>
<p>To create a new catroot2 folder by using the command prompt:</p>
<p>1. Click <strong>Start</strong>, point to <strong>All Programs</strong>, and then click <strong>Accessories</strong>.</p>
<p>2. Right-click <strong>Command Prompt</strong>, and then click <strong>Run as administrator</strong>.</p>
<p>3. If the <strong>User Account Control </strong>dialog box appears, confirm that the action it displays is what you want, and then click <strong>Continue</strong>.</p>
<p>4. In the command prompt window, type <strong>net stop cryptsvc</strong>, and then press ENTER.</p>
<p>5. Type <strong>ren <;%systemroot%>;\System32\catroot2 catroot2.old</strong>, and then press ENTER.</p>
<p>By default, <em>%systemroot%</em> is located at C:\Windows.</p>
<p>6. Type <strong>net start cryptsvc</strong>, and then press ENTER.</p>
<p>7. Type <strong>exit</strong>, and then press ENTER to close the command prompt window.</p>
<p><strong>Verify</strong></p>
<p>You can verify the integrity of the security catalog database by using the Esentutl command-line tool.</p>
<p>To perform this procedure, you must be a member of the local <strong>Administrators</strong> group, or you must have been delegated the appropriate authority.</p>
<p>To verify the integrity of the security catalog database:</p>
<p>1. Click <strong>Start</strong>, point to <strong>All Programs</strong>, and then click <strong>Accessories</strong>.</p>
<p>2. Right-click <strong>Command Prompt</strong>, and then click <strong>Run as administrator</strong>.</p>
<p>3. If the <strong>User Account Control</strong> dialog box appears, confirm that the action it displays is what you want, and then click <strong>Continue</strong>.</p>
<p>4. In the command prompt window, type <strong>net stop cryptsvc</strong> to stop Cryptographic Services, and then press ENTER.</p>
<p>5. Type <strong>esentutl /g <;%systemroot%>;\System32\catroot2\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\catdb</strong>, and then press ENTER.</p>
<p>By default, <em>%systemroot%</em> is located at C:\Windows.</p>
<p>6. If the integrity check on the security catalog database is successful, <strong>Integrity check successful</strong> will be displayed in the command prompt window.</p>
<p>7. Type <strong>net start cryptsvc </strong>to start Cryptographic Services, and then press ENTER.</p>
<p>Source: <a href="http://technet.microsoft.com/en-us/library/cc734083(WS.10).aspx" target="_blank">technet</a></p>
<p>This should do the trick, if not please post your comments below and I&#8217;ll try to help.</p>

Consent.exe hangs using “Run as Administrator”
