Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a problem with a program where the admin shield is on top of the icon although I have all options under Compatibility unchecked and I even disabled UAC but no matter what I do the shield remains on top of the icon...

Is it related to cache icon ? I have tried the following procedure but still unchanged:

taskkill /IM explorer.exe /F
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
shutdown /r /f /t 00

If someone knows how to get rid of the shield icon please let me know.

Thank you very much in advance.
Michel.
Posted
Comments
ledtech3 26-Mar-12 11:53am    
Are you talking about the right click "Run as Administrator" Option
If you are then there is a registry setting that allows that.
Depending on what the program is would depend on where to look.
I am still trying to locate where I worked with it before to enable it for another program.
SuperMiQi 26-Mar-12 12:08pm    
Hello ledtech3.

Yes I am talking about the right click "Run as Administrator" Option.
One of my application is always flagged with admin shield icon but I do not want it. Very stranged where this can be related to.
Where should I clear it from the registry ?

I found:
HKEY_USERS\S-1-5-21-2241769607-3162700916-239456858-1000\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Compatibility Assistant\Persisted
and
HKEY_USERS\S-1-5-21-2241769607-3162700916-239456858-1000\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers

But that did not change the behaviour, it is still set with the admin shield icon.

What could be the solution or the reason ?
Thank you very much in advance.
Michel.
ledtech3 26-Mar-12 12:28pm    
I may have found a windows seven Forum article that matches your problem,it appears to be a icon cache problem.
http://answers.microsoft.com/en-us/windows/forum/windows_7-security/unable-to-remove-the-run-as-administrator-option/a02ce0ea-8b3d-4b52-859a-a211694c6e48
look towards the bottom and see if this is what your problem sounds like.

I have been working on a program that does all of the steps for you for clearing the icon cache ,but it is still a work in progress. it works but is kinda ugly.
Let me know if that is the same problem you have. if not then let me know.
SuperMiQi 26-Mar-12 12:34pm    
Hello ledtech3,

Thanks for the quick response.

Do you talk about:
taskkill /IM explorer.exe /F
CD /d %userprofile%\AppData\Local
DEL IconCache.db /a
shutdown /r

This is very closed to my first attempt. The file iconcache.db is not present on my system and it results to not changing the icon behaviour.

Do you mean you have a tool to solve that issue ? Or is it just a batch file which executes these few lines ?

I will try on another Win7 pc tomorrow and will let you know if the problem is only related to my pc.

Thank you very much in advance.
Michel.
ledtech3 26-Mar-12 13:00pm    
The Icon cache consists of 2 registry keys that get deleted in a step in a particular order.
Yes, the program I wrote is in VB.Net But is still in Development. It does do the clearing for you.
If all of the steps are not followed in order, the way I have seen them posted on different forums then the process fails to get the end result.
I’ll post the program to my sky drive if you want to try it. And post a link when it is there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900