Title: KB946932: Disabling UAC Prompt for certain apps. Not that useful...
Slug: kb946932-disabling-uac-prompt-for-certain-apps-not-that-useful
Date: 2008-01-20 16:15:00
Author: Kartones
Lang: en
Tags: Systems-IT, Windows, Troubleshooting, Security
Description: A review of the KB946932 article, discussing the process of disabling UAC prompts for specific applications.

 <p>When I found a reference earlier today to this <a href="http://web.archive.org/web/20080204172644/http://support.microsoft.com/kb/946932">interesting KB</a> I thought "<i>wow, maybe I can finally get rid of the UAC prompts on my gaming PC</i>" (I won't remove them from the development PC under any circumnstance), so I've just finished trying it and here are my results.</p> <p>For this test, I've chosen a free application, <a href="http://www.fraps.com/">Fraps</a>, a screen capture tool compatible with DirectX (great for taking screenshots while you play videogames).</p> <p>Fraps needs Administrator privileges to be able to capture in-game screenshots, and every time you run it, prompts for UAC elevation (and if you setup it for launching with windows, Vista blocks it and you have to manually allow execution, so it's a bit clumbersome with UAC on).</p> <p>So, we open the shorcut to Fraps properties... (yeah, <a href="https://blog.kartones.net/post/dark-color-themes-support-on-windows">my colors are very dark</a>, but it's still Vista 64).</p>
 <p><img src="https://images.kartones.net/posts/screenshots/kb946932tests_001.png" mce_src="https://images.kartones.net/posts/screenshots/kb946932tests_001.png"> </p> <p>We install the Application <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=24DA89E9-B581-47B0-B45E-492DD6DA2971&amp;displaylang=en">Compatibility Toolkit 5</a>, and create a new DB of type Application Fix.</p> <p><img src="https://images.kartones.net/posts/screenshots/kb946932tests_002.png" mce_src="https://images.kartones.net/posts/screenshots/kb946932tests_002.png"> </p> <p>We setup the properties for the Fraps executable. <br><b>Note</b>: You must install que Comp. Toolkit on the destination machine because the Compatibility Administrator searches for the executable path ¬¬</p> <p><img src="https://images.kartones.net/posts/screenshots/kb946932tests_003.png" mce_src="https://images.kartones.net/posts/screenshots/kb946932tests_003.png"> </p> <p>And we choose the "<i>RunAsInvoker</i>" fix.<br><b>Note</b>: <i>RunAsInvoker</i> as it's name implies runs with invoker privileges (which if you have UAC on means <b><u>always as user</u></b>), <i>RunAsAdmin</i> asks always for elevation, and <i>RunAsHighest</i> will ask for elevation just if the account has administrator privileges.</p> <p><img src="https://images.kartones.net/posts/screenshots/kb946932tests_004.png" mce_src="https://images.kartones.net/posts/screenshots/kb946932tests_004.png"> </p> <p>We save it, and only remains installing it to apply the "fix":</p> <p><img src="https://images.kartones.net/posts/screenshots/kb946932tests_005.png" mce_src="https://images.kartones.net/posts/screenshots/kb946932tests_005.png"> </p> <p>Fraps successfully runs now without UAC prompt, so I tried running World of Warcraft (which I launch with "<i>Run Always as Administrator</i>" as its updater does not work 100% perfect under Vista)... And Fraps didn't worked, i couldn't take any screenshot :(</p> <p>The reason is that Fraps is running as a normal, unprivileged user, so it can't access the video memory and grab any screenshot. If I run Fraps with right-click -&gt; Run As Administrator, it works again and takes screenshots ;)</p> <p> </p> <p>So I had one additional step left to do, uninstall "the fix" (and later the Compatibility Toolkit):</p> <p><img src="https://images.kartones.net/posts/screenshots/kb946932tests_006.png" mce_src="https://images.kartones.net/posts/screenshots/kb946932tests_006.png"> </p> <p>This KB may have some use, but not for me. I was hoping to have some sort of "auto-elevate privileges on desired apps" but seems I'll have to keep answering UAC prompts to play some games.</p><p> </p><p><b>Update</b>:  Microsoft released the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=24da89e9-b581-47b0-b45e-492dd6da2971&amp;displaylang=en">Application Compatibility Toolkit</a>, that among other things contains a tool to keep a local database of applications that need auto-elevated privileges. Check <a href="https://www.techrepublic.com/article/selectively-disable-uac-for-your-trusted-vista-applications/">this post</a> for detailed instructions on how to use it.<br></p>
