UAC和Consent.exe [英] UAC and Consent.exe

查看:130
本文介绍了UAC和Consent.exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.

Hi all.

当普通用户需要将自己提升为管理员时,UAC会显示提升对话框(使用accept.exe).

When regular user need to elevate itself to administrator, UAC shows the elevation dialog (using the consent.exe).

是否存在自定义/替换concent.exe的标准方法.例如,我考虑通过开发凭据提供程序模块来加强管理员身份验证,因此,accept.exe的用户/密码对话框与我无关吗?

Is there a standard way to customize / replace concent.exe. For example, I consider strengthening administrator authentication by developing a credential provider module, so the consent.exe's user/password dialog is not relevant for me?

我猜想MS使得挂起accept.exe变得更加困难,因为它可以被恶意软件利用.但没有人知道的方式来做到这一点(我更喜欢一个标准的方式)

I guess MS makes it harder to hook consent.exe since its can be exploied by malwares. But does anyone know a way to do so (I prefer a standard way )

谢谢

Yair

推荐答案


假设您的凭据提供程序(自定义或来自Microsoft)支持
ICredentialProvider :: SetUsageScenario中的CPUS_CREDUI场景(
CREDENTIAL_PROVIDER_USAGE_SCENARIO cpus,
DWORD dwFlags
)
{
...
},

您要做的是加强Admin的UAC/同意政策.方法如下:

为管理员配置UAC提示行为
  1. 使用管理员批准模式"中的管理员帐户登录Windows Vista计算机.
  2. 单击开始按钮,单击运行,键入 secpol.msc ,然后单击确定.
  3. Microsoft管理控制台的用户帐户控制"对话框中,单击继续.
  4. 本地安全设置中,展开本地安全设置,展开本地策略,然后展开安全选项.
  5. 右键单击用户帐户控制:管理员在管理员批准模式下提升权限的行为设置,然后选择属性.
  1. Log on to a Windows Vista computer with an administrator account in Admin Approval Mode.
  2. Click the Start button, click Run, type secpol.msc, and then click OK.
  3. At the User Account Control dialog box for the Microsoft Management Console, click Continue.
  4. In Local Security Settings, expand Local Security Settings, expand Local Policies, and then expand Security Options.
  5. Right click the User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode setting and select Properties.

<身体>
同意加高政策
设置 说明 默认值

用户帐户控制:在管理员批准模式下管理员的提升提示的行为

Consent policy for elevation
Setting Description Default Value

User Account Control: Behavior of the elevation prompt for administrators in Admin Approval Mode

有三个可能的值:

无提示-海拔自动且无声地出现.

提示同意– UAC在提升之前要求同意.

3.

提示输入凭据 – UAC要求在提升之前输入有效的管理员凭据.此策略仅在启用UAC时生效.

Prompt for credentials – UAC requires valid administrator credentials are entered before elevating. This policy is only in effect when UAC is enabled.

提示同意


这篇关于UAC和Consent.exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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