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 security

Vista - Run As different user

Reply
 
Old 11-26-2007   #1 (permalink)
njohn


 
 

Run As different user

When using XP, I was able to run different programs (AD, etc) as a Domain
Admin while logged onto the computer as a Domain User. I did this by holding
the shift key down while right clicking on the program and then selecting
"Run as...". At this point, I would type in the Domain Admin's credentials
and be able to do what I needed to do.
How can I do this in Vista? Whenever I click on the "Run as..." it just
runs the program with elevated rights. I am needing to run it with completely
different credentials altogether.
I have tried getting around this by using the Runas command, but it fails
to open AD because it needs elevated privileges (even when running the
command prompt with elevated privileges).
Any help would be greatly appreciated. Thanks in advance!

My System SpecsSystem Spec
Old 11-26-2007   #2 (permalink)
James Matthews


 
 

Re: Run As different user

look at windows vista enterpirse

--

http://search.goldwatches.com/?Search=Movado+Watches
http://www.goldwatches.com/
http://www.jewelerslounge.com/
"njohn" <njohn@xxxxxx> wrote in message
news:8170DD80-9339-4D93-8316-A7328F359C9E@xxxxxx
Quote:

> When using XP, I was able to run different programs (AD, etc) as a Domain
> Admin while logged onto the computer as a Domain User. I did this by
> holding
> the shift key down while right clicking on the program and then selecting
> "Run as...". At this point, I would type in the Domain Admin's credentials
> and be able to do what I needed to do.
> How can I do this in Vista? Whenever I click on the "Run as..." it just
> runs the program with elevated rights. I am needing to run it with
> completely
> different credentials altogether.
> I have tried getting around this by using the Runas command, but it fails
> to open AD because it needs elevated privileges (even when running the
> command prompt with elevated privileges).
> Any help would be greatly appreciated. Thanks in advance!
My System SpecsSystem Spec
Old 11-26-2007   #3 (permalink)
njohn


 
 

Re: Run As different user

I am not sure what you mean by that, your post was rather vague.

When looking at Enterprise, what would you like me to see? Does Enterprise
have that capability while the other versions do not? Is there a way to get
that capability in the Business version?


"James Matthews" wrote:
Quote:

> look at windows vista enterpirse
>
> --
>
> http://search.goldwatches.com/?Search=Movado+Watches
> http://www.goldwatches.com/
> http://www.jewelerslounge.com/
> "njohn" <njohn@xxxxxx> wrote in message
> news:8170DD80-9339-4D93-8316-A7328F359C9E@xxxxxx
Quote:

> > When using XP, I was able to run different programs (AD, etc) as a Domain
> > Admin while logged onto the computer as a Domain User. I did this by
> > holding
> > the shift key down while right clicking on the program and then selecting
> > "Run as...". At this point, I would type in the Domain Admin's credentials
> > and be able to do what I needed to do.
> > How can I do this in Vista? Whenever I click on the "Run as..." it just
> > runs the program with elevated rights. I am needing to run it with
> > completely
> > different credentials altogether.
> > I have tried getting around this by using the Runas command, but it fails
> > to open AD because it needs elevated privileges (even when running the
> > command prompt with elevated privileges).
> > Any help would be greatly appreciated. Thanks in advance!
>
My System SpecsSystem Spec
Old 12-04-2007   #4 (permalink)
Toad


 
 

Re: Run As different user

njohn wrote:
Quote:

> When using XP, I was able to run different programs (AD, etc) as a
> Domain Admin while logged onto the computer as a Domain User. I did
> this by holding the shift key down while right clicking on the
> program and then selecting "Run as...". At this point, I would type
> in the Domain Admin's credentials and be able to do what I needed to
> do. How can I do this in Vista? Whenever I click on the "Run
> as..." it just runs the program with elevated rights. I am needing to
> run it with completely different credentials altogether.
> I have tried getting around this by using the Runas command, but it
> fails to open AD because it needs elevated privileges (even when
> running the command prompt with elevated privileges).
> Any help would be greatly appreciated. Thanks in advance!
Hi there,

I just got Vista by virtue of a new machine and was playing around with
UAC. Unfortunately, the runas command provided does not elevate rights
as does the Run as Administrator on the contecxt menu just as you
pointed out.

Anyway, I have compiled up shellas.exe which just calls ShellExecute
API with the runas verb as one of the parameters - this isn't different
than in XP.

So, now I can type shellas somecommand in the Run dialog and not have
to find the exe and right click on it... The command will run with
elevated rights as the user you select in the dialog.

I have gone a step further. In XP, I run as a limited user, but once I
log in, I become an administrator, so that I can optionally run
processes that need admin rights as myself and not another user (e.g.
installs). Upon, logoff I am depricated to a limited user again for the
next time.

I have now dome something similar in Vista, but it works subtley
different and isn't really as necessary any more, but works to keep
myself a limited user until I logon (after explorer desktop starts),
then using shellas I am made an administrator, then can run commands
later with elevated rights as myself and not another user; at logoff, I
am removed from the administrators group.

Toad

--


--

My System SpecsSystem Spec
Old 12-05-2007   #5 (permalink)
njohn


 
 

Re: Run As different user

I am glad that you were able to program something around this, but this is
something that should be built in! After all, it is following Microsoft's
guidelines for safe practices in a domain environment. I shouldn't need to
write a program to do something that was not only built into the last several
OS's that were released, but also encouraged by Microsoft. I am holding my
breath to see if SP1 will fix this (in my opinion) integral flaw in Vista.

"Toad" wrote:
Quote:

> njohn wrote:
>
Quote:

> > When using XP, I was able to run different programs (AD, etc) as a
> > Domain Admin while logged onto the computer as a Domain User. I did
> > this by holding the shift key down while right clicking on the
> > program and then selecting "Run as...". At this point, I would type
> > in the Domain Admin's credentials and be able to do what I needed to
> > do. How can I do this in Vista? Whenever I click on the "Run
> > as..." it just runs the program with elevated rights. I am needing to
> > run it with completely different credentials altogether.
> > I have tried getting around this by using the Runas command, but it
> > fails to open AD because it needs elevated privileges (even when
> > running the command prompt with elevated privileges).
> > Any help would be greatly appreciated. Thanks in advance!
>
> Hi there,
>
> I just got Vista by virtue of a new machine and was playing around with
> UAC. Unfortunately, the runas command provided does not elevate rights
> as does the Run as Administrator on the contecxt menu just as you
> pointed out.
>
> Anyway, I have compiled up shellas.exe which just calls ShellExecute
> API with the runas verb as one of the parameters - this isn't different
> than in XP.
>
> So, now I can type shellas somecommand in the Run dialog and not have
> to find the exe and right click on it... The command will run with
> elevated rights as the user you select in the dialog.
>
> I have gone a step further. In XP, I run as a limited user, but once I
> log in, I become an administrator, so that I can optionally run
> processes that need admin rights as myself and not another user (e.g.
> installs). Upon, logoff I am depricated to a limited user again for the
> next time.
>
> I have now dome something similar in Vista, but it works subtley
> different and isn't really as necessary any more, but works to keep
> myself a limited user until I logon (after explorer desktop starts),
> then using shellas I am made an administrator, then can run commands
> later with elevated rights as myself and not another user; at logoff, I
> am removed from the administrators group.
>
> Toad
>
> --
>
>
> --
>
>
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
dont know user account control password and no administrator user General Discussion
Vista Home Premium: New user account failing to load user profile Vista account administration
Control the Maximum allowed User Sessions in Fast User Switching Vista General
Temporary user profile created when user logs into domain Vista networking & sharing
User Profile Bad if this user is not first user logged onto Vista Vista account administration


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