Most users customize the right-click menu by adding additional verbs in the registry in order to launch programs or scripts. Windows 7 (and higher) lets you add the UAC Shield icon for static context menu items. If a verb you add to the right-click menu launches a program which runs elevated by default, then it’s a good idea to add the UAC shield icon so that users know that the task requires elevation.
For example, take the case of .REG files (aka Registration Entries). When you right-click on a .REG file, you’ll see the "Merge" command which launches Regedit.exe (always runs elevated when you’re logged in as administrator) and takes the file name as parameter. So let’s add an UAC icon to the Merge command for REG file type, as it runs Regedit.exe elevated.
By creating a registry value named HasLUAShield (REG_SZ) on the static verb, you can add the UAC shield icon to the corresponding item in the right-click menu. Use these steps:
Click Start, type Regedit.exe
Navigate to the following branch:
In the right-pane, create a String Value (REG_SZ) named HasLUAShield
Exit the Registry Editor.
Right-click on a .REG file, and you’ll see the UAC shield icon for the Merge command.
One small request: If you liked this post, please share this?One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
- Pin it!
- Share it to your favorite blog + Facebook, Reddit
- Tweet it!