Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Vista Newsgroups > Vista General

Vista - How to run application under different credentials

Reply
 
Old 08-14-2007   #1 (permalink)
James


 
 

How to run application under different credentials

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


My System SpecsSystem Spec
Old 08-14-2007   #2 (permalink)
Synapse Syndrome


 
 

Re: How to run application under different credentials

"James" <acidflea@hotmail.com> wrote in message
news:ui9GvRq3HHA.5776@TK2MSFTNGP04.phx.gbl...
>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.


My System SpecsSystem Spec
Old 08-14-2007   #3 (permalink)
Andrew McLaren


 
 

Re: How to run application under different credentials

"James" <acidflea@hotmail.com> 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


My System SpecsSystem Spec
Old 08-14-2007   #4 (permalink)
Bruce Chambers


 
 

Re: How to run application under different credentials

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
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Install application via package that includes Admin credentials Vista security
install application and provide account credentials? VB Script
Send to function wont open WinMail and attach pdf from adobe application. I know this can be accomplished by right clicking on the pdf file but I need the application to do the task. Any suggestions? Vista mail
appdata-local-Application Data-Application Data-Application Data infinitum ad nauseum. WHY Vista General
Application Error - CD MFC Application has stopped working Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

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