Question Locked

Vista; Run as different user account not available?

0 helpful
9 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Okay, I want to run a program with the credentials for another local user account on my computer. Simple, right? "runas /user:computer\user "[app.exe]"" and we should be good. Not so. I get "RUNAS ERROR: Unable to run - [...] 1327 Logon failure: user account restriction." Yadda yadda.

Argh #1

Fine. I'll try the GUI way. Right click the icon and select Run as. Hmmm... it's not there. Oh yeah, shift clicking it should work. Nope. Still not there. Just the ubiquitous "Run as Administrator" option.

Argh #2

Does this imply that Vista does not support changing to a different user's credentials? I've seen one interesting thread on this topic ( http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.windows.vista.security&tid=8170dd80-9339-4d93-8316-a7328f359c9e&p=1 ) where a few folks hacked together some scripts that use the ShellExecute API to get the same thing done. Do I really have to use a script hack to change user context?

Argh #3

Anyone have this same experience?

9 replies

by evilhomergd

I just double-checked on my Vista machine here in the office and the runas command does work. Check to make sure that the Secondary Logon service is running. This is what allows you to run a command as a different user.

by otaku_lord

I have the service running and still cannot find the RUN AS prompt.

by remaind

If you've done permissions properly your account shouldn't have administrative rights. Thus: when you right click and select "run as administrator" you'll be prompted to enter alternative credentials.

If you haven't done this properly, the easiest way around it is to use the "runas.exe" command.

REMEMBER to run this command as an administrator.

by nonapeptide

I sheepishly admit that the reason that my "runas" attempt didn't work was because the account was disabled.

Argh #2 and #3, however, are still pending.

(EDIT: Thanks EvilHomerGD)

by nonapeptide

Okay, I tried it. It's pretty good. Yeah, it's annoying that I have to type in credentials _every_ time I need to elevate privileges, but it gets the job done. Thanks,

by otaku_lord

Tried this but only got as far as "Windows Settings". None of the other prompts were there. Assistance please?

by evilhomergd

Vista is definitely a pain in the rear end... Thanks for the thumbs

This discussion is closed to new replies.