具有管理权限问题运行管理权限、问题

2023-09-04 22:36:12 作者:妳們有資本欺騙感情嘛

我使用Windows Vista和我发现一些奇怪的事情,

我编程调用IE打开IE浏览器访问一些本地的HTML页面,当前用户属于管理员组;

我编程调用IE浏览器与运行方式的参数,并让IE浏览器访问访问一些地方的HTML页面,当前用户属于管理员组;

我发现(1)和(2)有时会有不同的效果(页面内容),尤其是当有ActiveX或Silverlight插件在本地页

我的困惑是,如果当前用户属于管理员组,它不应该的问题,我们是否使用RunAs的参数。为什么仍然有和没有的RunAs参数,即使当前用户不同的属于管理员组?

在此先感谢, 乔治

解决方案

即使当用户是在管理干部组,它们将不能够不经由UAC提示请求高程一个应用程序来进行特权操作。

因此​​,用鼠标右键单击以管理员身份运行上下文菜单项的可用性。

下面是UAC一些文档来自微软。它包含以下内容:

  

在管理员登录,完全管理员访问令牌直到用户试图执行管理任务调用。

win7 管理员权限问题

这是管理任务定义为需要提升(由Vista的挡箭牌了应用程序的图标指示)的任务。

不过,我不知道你怎么可能以编程方式调用Internet Explorer的pre-elevated,也不如果这是正确的解决您的问题。

I am using Windows Vista and I find something strange,

I programatically invoke IE to open IE to access some local html page, the current user belongs to administrator group;

I programatically invoke IE with RunAs parameter, and let IE to access access some local html page, the current user belongs to administrator group;

I find (1) and (2) sometimes have different results (page content), especially when there is ActiveX or Silverlight plug-in in the local page.

My confusion is, if the current user belongs to Administrator Group, it should not matter whether we use RunAs parameter. Why still different with and without RunAs parameter even current user belongs to administrator group?

thanks in advance, George

解决方案

Even when the user is in the Administators group, they won't be able to undertake privileged operations without an application requesting elevation via a UAC prompt.

Hence the availability of the right-click, "run as administrator" context menu item.

Here is some documentation on UAC from Microsoft. It contains the following:

After an administrator logs on, the full administrator access token is not invoked until the user attempts to perform an administrative task.

An administrative task is defined as a task that requires elevation (indicated by a Vista "shield" over the icon for the application).

However, I am not sure how you might programatically invoke Internet Explorer "pre"-elevated, nor if this is the proper solution to your problem.