在win7中删除HKEY_LOCAL_MACHINE下的注册表项 [英] Delete registry key under HKEY_LOCAL_MACHINE in win7

查看:224
本文介绍了在win7中删除HKEY_LOCAL_MACHINE下的注册表项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想删除Windows 7中的USB存储设备信息,现在我知道它与HKEY_LOCAL_MACHINE \SYSTEM \CURRENT_CONTROL_SET \ ENUM \ USBS下的这些键有关,但是我无法成功删除它因为访问控制。有谁知道如何解决这个问题,想你

I want to delete the USB storage device information in windows 7, and now I know it is releate with these keys under HKEY_LOCAL_MACHINE\SYSTEM\CURRENT_CONTROL_SET\ENUM\USBS ,but i cannot delete it succefully because of the access control.Does anyone know how to solve this problem,think you

推荐答案

你只是没有足够的权限。它还取决于Windows版本。在Windows 7及更高版本(Vista,但它曾经存在?:-))使用其UAC,以管理员身份登录还不够,您仍然需要在提升的权限下运行应用程序。请参阅:

http://4sysops.com/archives/vista%E2%80%99s-uac-8-ways-how-to-elevate-an-application-to-运行管理员权限/ [ ^ ],

http://www.sevenforums.com/tutorials/11841-run-administrator.html [ ^ ]。



如果从一开始就以任何方式启动应用程序时请求提升权限,则可以在所有情况下避免异常。您可以使用此选项嵌入适当的应用程序清单。请参阅:

http://msdn.microsoft.com/en-us /library/bb756929.aspx [ ^ ]。



请注意,您无法避免UAC对话请求用户确认,这会破坏UAC的目的。你只能全局关闭系统确认,我不建议。



参见:http://en.wikipedia.org/wiki/User_Account_Control [ ^ ]。



-SA
You just don''t have enough permission. It also depends on Windows version. On Windows 7 and later (Vista, too, but did it ever existed? :-)) with its UAC, it''s not enough to be logged on as administrator, you still have to run the application under elevated privileges. Please see:
http://4sysops.com/archives/vista%E2%80%99s-uac-8-ways-how-to-elevate-an-application-to-run-it-with-administrator-rights/[^],
http://www.sevenforums.com/tutorials/11841-run-administrator.html[^].

You can avoid exception in all cases, if you request elevated privileges from the very beginning, when you start the application in any way. You can embed appropriate application manifest with this option. Please see:
http://msdn.microsoft.com/en-us/library/bb756929.aspx[^].

Note that you cannot avoid UAC dialog requesting for user confirmation, which would defeat the purpose of UAC. You can only switch off confirmation for the system globally, which I would not recommend.

See also: http://en.wikipedia.org/wiki/User_Account_Control[^].

—SA


这篇关于在win7中删除HKEY_LOCAL_MACHINE下的注册表项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆