Your best source of information and news about windows vista , software and winvista on the internet 您的最佳信息来源和新闻关于Windows Vista软件winvista在互联网上

Vista ARTICLES Vista的文章 TOP 50前50名 Vista VIDEOS Vista的影片 Vista SOFT Vista的软 Vista HELP Vista帮助

Elevate processes from the command prompt in Vista提升过程中从命令提示符在Vista


One of the things I do all the time in XP, 2000, and 2003 is use the RunAs command.其中一件事我手边所有的时间在XP中, 2000年和2003年是使用runas命令。 It comes in handy when you are running as a limited user, and need to fire up a process as an administrator.它在方便时,您正在运行作为一个有限的用户,需要消防了一个进程,作为管理员。

Here is the typical command line sequence这里是典型的命令行序列

c:> Runas /user:intelliadmin\administrator notepad.exe c : > runas /用户: intelliadmin \管理员是Notepad.exe
Enter the password for intelliadmin\administrator: ********* 输入密码为intelliadmin \管理员: *********
Attempting to start notepad.exe for user intelliadmin\administrator 试图启动Notepad.exe为用户intelliadmin \管理员

Then notepad launches under my administrator account, instead of the current user.然后记事本推出下,我的管理员帐户,而不是目前的使用者。

This works great under those operating systems.这个伟大的工程,根据这些作业系统。 I can run as a limited user, and when I want I can launch a command line window, or any other program as an administrator.我可以运行,作为一个受限用户,当我想我可以发射的命令行窗口,或任何其他程序作为管理员。

Unfortunately it doesn’t work the same in Vista.不幸的是它也不工作,同时在Vista中。 Yes - the RunAs command works perfectly fine.是-r unas命令工程完全罚款。 But because of the way UAC works it does not give me full administrative access.但由于道路工程的UAC不给我充分的管理权限。 Why?为什么? Because when I launch another process as an administrator it still needs to be elevated.因为当我发动另一进程作为管理员,它仍然需要得到提高。

If you have not used Vista yet I will explain.如果您从未使用过Vista的,但我会解释。 All users by default (Even administrators) run as a limited user.所有用户默认情况下(甚至管理员)来说,作为一个有限的用户。 When windows detects that you need a higher level of access you are prompted like this:当Windows侦测到你需要一个更高层次的访问提示您是这样的:

的UAC提示的命令行

That way you know, and have a choice when an application has administrative access - even when running as an administrator.这样,你也知道,和有选择的申请时,有管理权限的-甚至当管理员身份运行。 The problem is that this prompt will only show if the program is Vista aware, or Vista detects that it is needed.问题是,此提示将只显示如果该程序是Vista的知道,或Vista侦测到它是必要的。 Sometimes it is impossible for Vista to detect this.有时是不可能的Vista中发现这一点。 Why?为什么? How could it possibly know that you want to launch notepad so you can edit a file within the windows directory?怎么可能,它可能知道你要启动记事本,让您可以编辑文件内的Windows目录?

It can’t - and I was looking for something that would let me tell Vista from the command line that I wanted to be prompted.它不能-和我一直在寻找的东西将让我告诉V ista的从指令行,我想提示。 Microsoft Technet has an Microsoft TechNet上有一 excellent article优秀文章 , and a powertoy (at the top) that lets you do exactly that. ,和powertoy (在上方) ,可让您做的正是这一点。

It is simple to use.这是简单的使用。 Once downloaded you can call it like this:一旦下载,您可以调用它是这样的:

迅速提升的UAC

Now I can easily elevate from the command line and get administrative access when I need it.现在我可以很容易提升,从命令行并获得管理权限的,当我需要它。

Popularity: 1%人气: 1 %


Written by Steve Wiseman. 写的史蒂夫怀斯曼。 Read more great feeds at is source 阅读更多伟大的饲料是来源 WEBSITE 网站
no comments 没有评论 .
Read more articles on 阅读更多的文章 software 软件 .

Related articles相关文章

No comments没有评论

There are still no comments on this article.仍然有没有评论这篇文章。

Leave your comment...离开您的评论...

If you want to leave your comment on this article, simply fill out the next form:如果您想留下您的评论关于此文章,只需填写未来的形式:




You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> .您可以利用这些资料的XHTML标签:的<a href="" title=""> <abbr title=""> <acronym title="">的<b> <blockquote cite="">的<code>的<em> < i > <strike>的<strong> 。