Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > How to run application under different credentials

Reply
Thread Tools Display Modes

How to run application under different credentials

 
 
James
Guest
Posts: n/a

 
      08-14-2007
I used the "run as" feature in XP to run applications as a different user.
How can I do this in Vista? I only see "run as administrator" when I right
click on a shortcut. We are in a network environment and I want to run as a
different user but not the local admin user.

Thanks,
James

 
Reply With Quote
 
 
 
 
Synapse Syndrome
Guest
Posts: n/a

 
      08-14-2007
"James" <> wrote in message
news:...
>I used the "run as" feature in XP to run applications as a different user.
>How can I do this in Vista? I only see "run as administrator" when I right
>click on a shortcut. We are in a network environment and I want to run as a
>different user but not the local admin user.
>


Well, nobody has answered yet, so..

You can try using the RUNAS from the command line. I am not actually sure
if it works as it did in XP, as I no longer have to run from a power user
account now we have this UAC business, so I have not been using RUNAS in
Vista.

But, from my memory, before I understood UAC, I tried using RUNAS when I
started using Vista and it did not work as I expected. I can't actually
check it right now as I am using my XP Thinkpad.

So, until somebody else, or I, can give you a better answer, try using RUNAS
from the command line.

ss.


 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      08-14-2007
"James" <> wrote...
>I used the "run as" feature in XP to run applications as a different user.
>How can I do this in Vista? I only see "run as administrator" when I right
>click on a shortcut. We are in a network environment and I want to run as a
>different user but not the local admin user.


Hi James,

Fortunately, runas.exe still works from the command-line. You can run an app
as any arbitrary user (administrator or standard user); for example,

C:\>runas /user:mydomain\bill notepad

to run Notepad as standard user "mydomain\bill".

If you want to run as an administrative user, who is a member of the
Administrators group (but not the built-in Administrator user) you can
choose "Run as .." from the context menu and add any alternative
credentials, as long as the user you enter is an administrator.

The loss of ability to run an app as an alternative standard user in Vista
is a major hassle, in some scenarios (it was great for software testing an
debugging). But apparently the change is "by design". Several bugs were
opened by beta testers during the Vista beta and they were all closed as
"won't fix". The Microsoft Windows developers were apparently guarding
against some specific security threat (I'm not sure which).

You can create batch files for apps you run regularly, to avoid too much
comand-line typing. Main thing to know about runas.exe is that you *must*
type in the user's password interactively, you can't pass it as a command
line parameter, or pipe it in, in a batch file.

Also note that if you run an app from a mapped network drive, the
alternative user context won't necesarily have the same drive mapping. But
this issue also applies to XP, Vista is not especially different in that
regard.

Hope this helps,
--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
Bruce Chambers
Guest
Posts: n/a

 
      08-15-2007
James wrote:
> I used the "run as" feature in XP to run applications as a different
> user. How can I do this in Vista?



Pretty much in the exact same way. All of the command-line options
that were available for RUNAS.EXE under WinXP are still abvailable in
Vista. Further, if you feel the need to use the default GUI shortcut,
it'll still work, regardless of whether or not the selected account has
administrative privileges, assuming that the account does have whatever
privilege level is required by the task. From Vista's Help & Support:

================================================== ======================
Using the Run As command

In previous versions of Windows, you had to use an administrator account
to do certain things, such as changing system settings or installing
software. If you were logged on as a limited user, the Run as command
eliminated the need to log off and then log back on as an administrator.

In this version of Windows, the Run as command has been changed to Run
as administrator. You should rarely have to use the Run as administrator
command because Windows will automatically prompt you for an
administrator password when needed. Some older programs might still
require you to use the Run as administrator command to eliminate the
need to log off and then log back on.

Right-click the program icon or file that you want to open, and then
click Run as administrator.

Select the account that you want to use, and then type the password.

************************************************** **********************
Tip
You can also use the Run as administrator command to run a program as
another user, even if the user does not have an administrator account.
To do so, select the account after clicking Run as administrator.
************************************************** **********************



--

Bruce Chambers

Help us help you:
http://dts-l.org/goodpost.htm
http://www.catb.org/~esr/faqs/smart-questions.html

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin

Many people would rather die than think; in fact, most do. -Bertrand Russell
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY keepout@yahoo.com.invalid Windows Vista General Discussion 16 09-16-2007 12:50 AM
Application Error - CD MFC Application has stopped working vinodsp2001@gmail.com Windows Vista General Discussion 0 09-06-2007 04:28 AM
Different user credentials Or Tsemah Windows Vista Networking 1 08-20-2007 09:37 AM
I don't have any credentials to enter! Yarrielle Windows Vista Networking 5 04-16-2007 05:10 PM
entering credentials for Run as Brandon Windows Vista General Discussion 1 11-30-2006 07:03 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59