Re: runas /u:username cmd.exe

From: Chris Weber (chrisw@lookout.net)
Date: 05/28/02


From: "Chris Weber" <chrisw@lookout.net>
Date: Tue, 28 May 2002 10:07:58 -0700


For example, I am logged into XP Pro as a normal user account, and I launch
a privileged cmd.exe process as administrator like:

runas /u:administrator cmd.exe

Then I work inside this privileged cmd.exe. I am running windump from the
command line, and want to kill the process and return to the command line,
but Ctrl + C does not work. It's true for any program I run, be it netstat,
gpresult, tree, or even ping. Now get this, Ctrl + C does seem to work when
I am just sitting at a command prompt with no program running.

I have no problems with normal command shells that are not launched via
runas. This appears to be a bug as it can be reproduced, try it yourself.

"Debra Earle" <theboss@intranet-works.com> wrote in message
news:3CEDC7B4.D2A43DD5@intranet-works.com...
> Chris Weber wrote:
> >
> > Does anyone know why Ctrl + C will not work in a cmd.exe shell launched
from
> > runas?
> >
> > thanks,
> > Chris
>
> That shouldn't be the case. Can you be more specific? For example,
> sometimes when the system is busy, it won't respond immediately to
> Ctrl-C. What is happening, and what are you expecting to happen? When
> are you trying to use Ctrl-C, and why?
>
> -- DE



Relevant Pages

  • Create a context menu entry doing runas
    ... Up to now I open a command prompt and launch the ... script using the runas command. ...
    (microsoft.public.windowsxp.basics)
  • dont pour thereby while youre treating below a medical bucket
    ... green for Bill to accumulate it. ... The launch at times the redundant ... creates along with our command after we designate on to it. ... Both producing now, Donovan and Murad dictated the supposed ...
    (sci.crypt)
  • Re: CREATEPROCESS and other questions...
    ... There is an intrinsic (HPCICOMMAND) that will let you stream a job ... or do just about any other MPE command from within your program. ... name of the executable you wish to launch, ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Closing a file and the form
    ... be done in VB using the 'Shell' command too. ... launch an application with a certain file. ... make it ready for reading data from the file and/or writing data to ... For Excel files and other binary formats, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Use IESIMPLE in OS design (full screen)
    ... That's because items started via Init key entries get, on their command ... IESimple, as ... file and I set the launch order, ...
    (microsoft.public.windowsce.embedded)