本帖最后由 门口 于 2025-12-29 22:00 编辑
程序文件上的盾牌标识表明程序需要以管理员身份权限运行,一般是通过程序的清单文件(内置资源或外置资源)或兼容性设置(注册表)来实现的。
如果要删除这种管理员权限需求,可以通过编辑程序的清单文件(file.exe.manifest)或用资源编辑工具编辑程序的清单资源(Manifest)来实现。
清单文件(资源)一般如下:
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="requireAdministrator"
uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
将 requireAdministrator 改成 asInvoker 即可,或者删除整个区段,或者干脆简单粗暴的删除整个清单文件/资源(不建议)。
---
至于说,如果要象删除或修改快捷方式图标那样去删除/隐藏这个盾牌覆盖图标,可以用使用透明图标的变通方法:
用注册表编辑器打开下面位置:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer,新建项:Shell Icons
再新建名 77 的字符串,再填入可透明图标即可,比如:%windir%\System32\shell32.dll,-50
或者运行以下命令,其中shell32.dll,-50和imageres.dll,-17等为透明图标,reg delete为删除/还原,imageres.dll,-78为默认的盾牌图标:
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f /v 77 /d %windir%\System32\shell32.dll,-50
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f /v 77 /d %windir%\System32\imageres.dll,-17
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f /v 77
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /f /v 77 /d %windir%\System32\imageres.dll,-78
注意:修改外壳图标需要刷新或清理图标缓存,可以使用 Sordum 的Rebuild Shell Icon Cache 等之类软件工具。 |