Visual Studio RunAs

Visual Studio RunAs

am 28.01.2008 17:30:48 von moondaddy

A few days ago I used the RunAs command for the first time to launch VS
under a different profile which had different security settings. Since then
I'v rebooted the machine several times and started VS several times assuming
I was starting VS as the same user I log into the machine with. However, it
seems to have remembered the user used when I did the RunAs command because
while using VS, I still have the same permissions as when I ran the RunAs
command.

Question: when using the RunAs command, does VS continue to run (even from
session to session) as that user until the RunAs command is used again?

--
moondaddy@newsgroup.nospam

RE: Visual Studio RunAs

am 29.01.2008 05:05:47 von stcheng

Hi Moondaddy,

From your description, you've ever used "RunAs" to run VS (2005?) under a
different account, however, after you switch back to use the current logon
user, you found that it keep the "runas" user account setting ,correct?

As you mentioned the "the same permission", I wonder what is the permission
you mentioned or would you provide some further explanation of the behavior
which make you think the Visual studio is still keeping the "runas" user
setting instead of run as your current logon user's setting?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
>From: "moondaddy"
>Subject: Visual Studio RunAs
>Date: Mon, 28 Jan 2008 10:30:48 -0600

>
>A few days ago I used the RunAs command for the first time to launch VS
>under a different profile which had different security settings. Since
then
>I'v rebooted the machine several times and started VS several times
assuming
>I was starting VS as the same user I log into the machine with. However,
it
>seems to have remembered the user used when I did the RunAs command
because
>while using VS, I still have the same permissions as when I ran the RunAs
>command.
>
>Question: when using the RunAs command, does VS continue to run (even
from
>session to session) as that user until the RunAs command is used again?
>
>--
>moondaddy@newsgroup.nospam
>
>
>

RE: Visual Studio RunAs

am 30.01.2008 19:00:01 von PRSoCo

"Run As..." executes an application under the context of a specific login.
When you terminate the application that context is no longer used for that
application because it's not running any more. If you double click on the
Visual Studio icon again, it will use the currently logged-in user, no
information about the user used when you used "Run As..." prior would be
known or used. You have to always use "Run As..." to run an application as a
user other than the currently logged-in user.

--
Browse http://connect.microsoft.com/VisualStudio/feedback/ and vote.
http://www.peterRitchie.com/blog/
Microsoft MVP, Visual Developer - Visual C#


"moondaddy" wrote:

> A few days ago I used the RunAs command for the first time to launch VS
> under a different profile which had different security settings. Since then
> I'v rebooted the machine several times and started VS several times assuming
> I was starting VS as the same user I log into the machine with. However, it
> seems to have remembered the user used when I did the RunAs command because
> while using VS, I still have the same permissions as when I ran the RunAs
> command.
>
> Question: when using the RunAs command, does VS continue to run (even from
> session to session) as that user until the RunAs command is used again?
>
> --
> moondaddy@newsgroup.nospam
>
>
>