是否可以绕过UAC设置? [英] Is it possible to Bypass UAC settings ?

查看:106
本文介绍了是否可以绕过UAC设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有没有办法绕过UAC(用户访问控制)设置,以便我的应用程序无需任何提示即可启动?



另外我发现微软产品不会提示UAC设置,所以它是否意味着微软产品绕过UAC设置或他们正在使用一些特殊处理来处理UAC设置。

解决方案

不,系统属于用户,而不是应用程序。这只是垃圾邮件发送者和黑客一直在问的问题。这里没有人会帮助你成为那些恼人的类型之一。


不,但用户可以1)使用XP模式; 2)关闭UAC安全性。我强烈建议避免任何这些危险的步骤。

您无法在您的应用程序中执行此操作,但Richard MacCutchan在解决方案1中解释的原因。


您可以创建它的最佳方式并嵌入应用程序清单,该清单将从一开始就请求权限提升,从而使用户无需手动执行: http://msdn.microsoft.com/en-us/library/bb756929.aspx [ ^ ]。



另请参阅: http://en.wikipedia.org/wiki/User_Account_Control [ ^ ]。



-SA


< blockquote class =FQ>

RhishikeshLathe问:



还有一件事我想知道为什么微软的产品会不提示UAC,例如启动Office Word时不会给出任何提示。

我不知道这些应用程序,并且非常确定它们不存在。 Microsoft应用程序(包括系统实用程序)使用相同的规则来玩游戏。



Microsoft Office Word,你说?让我们来看看。此应用程序不使用UAC提示符,因为它不执行任何需要提升权限的操作。检查它很容易。执行以下操作:启动Word而不以管理员身份运行;不需要UAC请求对话框。在某些目录属性上使用提升权限,进行管理更改:限制对此目录的写访问权限,以便只能使用提升的权限。然后尝试将Word文档保存到此目录。您将获得权限异常,处理,并提供相应的错误消息。现在,运行Word以管理员身份并传递UAC对话框。现在Word将允许您写入此目录。



与此相反,运行Regedit.exe。尽管使用此实用程序的许多操作不需要提升权限,但此应用程序的应用程序清单始终请求UAC对话框,如我在解决方案1中所述。只有在通过UAC确认时才能运行此实用程序。



-SA


Hi,
Is there any way to bypass UAC (User Access Control) settings so that my application will launch without any prompt ?

Also I found that the microsoft product will not prompt for UAC settings, so does it mean microsoft producs are bypassing UAC settings or they are using some special treatment to handle the UAC settings.

解决方案

No, the system belongs to the user, not the application. This is just the sort of question that spammers and hackers are always asking. And no one here is going to help you to become one of those annoying types.


No, but the user can 1) use "XP mode"; 2) turn off the UAC security. I would strongly recommend avoiding any of these dangerous steps.
You cannot do it in your application, but the reasons Richard MacCutchan explained in Solution 1.

The best you can do it to create and embed the application manifest which would request the privilege elevation from the very beginning, freeing the user from doing it manually: http://msdn.microsoft.com/en-us/library/bb756929.aspx[^].

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

—SA


RhishikeshLathe asked:


One more thing I want to know that why Microsoft products will not give prompt for UAC, e.g. while launching Office Word will not give any prompt.

I don't know such applications and pretty much sure they don't exist. Microsoft applications, including system utilities, play the game with the same rules.

Microsoft Office Word, you say? Let's see. This application does not use UAC prompt, because it does not do anything which would require elevated privileges. It's easy to check itup. Do the following: start Word without "Run As Administrator"; UAC request dialog is not required. Using elevated privilege on some directory Properties, make an administrative change: limit write access to this directory so it would be possible only with elevated privileges. Then try to save Word document to this directory. You will get permission exception, handled, with appropriate error message. Now, run Word "As Administrator" and pass UAC dialog. Now Word will allow you to write to this directory.

In contrast to that, run Regedit.exe. Even though many operations with this utility don't require elevated privileges, this application has the application manifest always requesting UAC dialog, as I described in Solution 1. You can only run this utility if you pass the UAC confirmation.

—SA


这篇关于是否可以绕过UAC设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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