Looking for a Vista Compatible Remote Control Solution?

Try Remote Control 3.2 15 Day Trial


Previous Posts


Connect Using Dialup Modem - Disabled (Why?)

Set default settings for Excel 2003

Update the Windows Path Completion feature

Set the default font in Microsoft Word XP, 2003, a...

Windows Vista User Account Control (UAC)

Schedule a reboot in Windows 2003

Download free hard drive imaging software

Set default folder for attachments in Outlook 2003...

FTP Files Automatically

Install Windows 2003 Recovery Console



Archives

May 2005

January 2006

April 2006

May 2006

June 2006

July 2006

September 2006

October 2006

November 2006

December 2006

January 2007

February 2007

March 2007

April 2007

May 2007

June 2007

July 2007

August 2007

September 2007

October 2007

November 2007

December 2007

January 2008

February 2008

March 2008

April 2008

May 2008

June 2008

July 2008

August 2008

September 2008

October 2008

November 2008



Subscribe to our Feed:






Elevate processes from the command prompt in Vista

If you like this article, then sign up for our email newsletter to get great Windows IT news and tips

One of the things I do all the time in XP, 2000, and 2003 is use the RunAs command. 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
Enter the password for intelliadmin\administrator: *********
Attempting to start notepad.exe for user intelliadmin\administrator

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. Yes - the RunAs command works perfectly fine. But because of the way UAC works it does not give me full administrative access. 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. 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:

UAC Prompt Command Line

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. Sometimes it is impossible for Vista to detect this. Why? How could it possibly know that you want to launch notepad so you can edit a file within the windows directory?

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. Microsoft Technet has an excellent article, and a powertoy (at the top) that lets you do exactly that.

It is simple to use. Once downloaded you can call it like this:

UAC Prompt Elevate

Now I can easily elevate from the command line and get administrative access when I need it.


Posted By: Steve Wiseman on Thursday, September 20, 2007

Check out our utilities for windows

 



Copyright © IntelliAdmin, LLC, 2005-2009. All Rights Reserved