具有管理权限问题运行

编程入门 行业动态 更新时间:2024-10-27 06:32:31
本文介绍了具有管理权限问题运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

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

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

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

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

    在此先感谢, 乔治

    解决方案

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

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

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

      

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

    这是管理任务定义为需要提升(由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.

    更多推荐

    具有管理权限问题运行

    本文发布于:2023-11-11 06:45:25,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1577661.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:管理权限

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!