Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RunAs PowerShell - Ctrl+C no longer works...

113 views
Skip to first unread message

Timothy

unread,
Jun 5, 2007, 2:19:02 PM6/5/07
to
Whenever I run PowerShell using RunAs in Windows XP, the Control+C key
sequence no longer works.

An example...

If I run "ping.exe -t" which will ping endlessly, the way you get back to
the command prompt is by pressing CTRL+C. If I run PowerShell under my user
context, this works fine. If I run PowerShell as an admin, it's as if CTRL+C
is ignored. I have to "X" to close the window. This is highly frustrating.
The weird thing is that PowerShell itelf seems to react to CTRL+C because if
I press it at an empty command line, it gives me a new command line, so it is
definitely seeing something being pressed.

Anybody have any clues?


--
Timothy Carroll
MCSA/MCSE: Security
Security+
www.avianwaves.com

Techstarts

unread,
Jun 6, 2007, 7:32:14 AM6/6/07
to
irrespective of you use powershell/CMD prompt, if use ping -t option you've to press x to stop ping, not sure if there is any work around.   
 
Thank you,
- Preetam
 

Thomas Lee

unread,
Jun 6, 2007, 7:00:03 PM6/6/07
to
In message <#xNOr4Cq...@TK2MSFTNGP06.phx.gbl>, Techstarts
<preet...@gmail.com> writes
>? irrespective of you use powershell/CMD prompt, if use ping -t option
>you've to press x to stop ping, not sure if there is any work around. 

Not so. Ctrl-C works fine to stop a ping -t.

I can not reproduce the OP's problem. :-(

--
Thomas Lee
doct...@gmail.com
MVP - Admin Frameworks and Security

GodOfLions

unread,
Jun 7, 2007, 5:21:01 PM6/7/07
to
FYI: I've had the same problem with using runas and Powershell. It doesn't
matter what account I RunAs, it will not let me use Ctrl+C to stop the
process, i have to use Task Manager to kill the Powershell session itself to
stop it.

GodOfLions

unread,
Jun 7, 2007, 5:23:00 PM6/7/07
to
I'm having the same problem. I'm using an Windows XP SP2 system, and it does
not matter what account I RunAs with Powershell Ctrl+C does not stop the
process. The only way for me to stop the process is to use Task Manager to
Kill PowerShell.

Timothy

unread,
Jun 8, 2007, 10:21:01 AM6/8/07
to
I'm also running Win XP SP2 here. I just tried it in a standard CMD.EXE and
it won't stop it either when being RunAs'ed... This must be some weird issue
with just the Windows Console mode itself. Can you try it with CMD and see
if you get the same results?

This is aggrivating.. The windows console has _got to be replaced_!!!

I'm going to try this with Vista tonight. I have that on my laptop at home.
I wonder if the issue persisted through to Vista...

--
Timothy Carroll
MCSA/MCSE: Security
Security+
www.avianwaves.com

klu...@gmail.com

unread,
Jun 8, 2007, 1:08:49 PM6/8/07
to
On Jun 8, 7:21 am, Timothy <Timo...@discussions.microsoft.com> wrote:
> I'm also running Win XP SP2 here. I just tried it in a standard CMD.EXE and
> it won't stop it either when being RunAs'ed... This must be some weird issue
> with just the Windows Console mode itself. Can you try it with CMD and see
> if you get the same results?
>
> This is aggrivating.. The windows console has _got to be replaced_!!!
>
> I'm going to try this with Vista tonight. I have that on my laptop at home.
> I wonder if the issue persisted through to Vista...
>
> --
> Timothy Carroll
> MCSA/MCSE: Security
> Security+www.avianwaves.com
>
>
>
> "GodOfLions" wrote:
> > FYI: I've had the same problem with using runas and Powershell. It doesn't
> > matter what account I RunAs, it will not let me use Ctrl+C to stop the
> > process, i have to use Task Manager to kill the Powershell session itself to
> > stop it.
>
> > "Thomas Lee" wrote:
>
> > > In message <#xNOr4CqHHA.4...@TK2MSFTNGP06.phx.gbl>, Techstarts
> > > <preetamz...@gmail.com> writes

> > > >? irrespective of you use powershell/CMD prompt, if use ping -t option
> > > >you've to press x to stop ping, not sure if there is any work around.
>
> > > Not so. Ctrl-C works fine to stop a ping -t.
>
> > > I can not reproduce the OP's problem. :-(
>
> > > --
> > > Thomas Lee
> > > doctor...@gmail.com
> > > MVP - Admin Frameworks and Security- Hide quoted text -
>
> - Show quoted text -

I can duplicate that this error occurs under the runas scenario in 1)
Powershell.exe 2) plain old cmd.exe and 3) our own console based
host (even with the button that you click to stop the pipeline as well
at CTRL-C) , but not in our GUI based host - Powershell Analyzer . it
seems to be something with the console subsystem.

Has anybody 1) submitted this on connect , or 2) researched it in the
cmd.exe context on google?

-Karl

Thomas Lee

unread,
Jun 15, 2007, 11:58:32 AM6/15/07
to
In message <2BBEA17E-3375-4BD9...@microsoft.com>,
GodOfLions <GodOf...@discussions.microsoft.com> writes

>I'm having the same problem. I'm using an Windows XP SP2 system, and it
>does not matter what account I RunAs with Powershell Ctrl+C does not
>stop the process. The only way for me to stop the process is to use
>Task Manager to Kill PowerShell.

Not sure what I did last time - but I can now reproduce this 'feature'.

Time to file a bug me thinks.

Thomas Lee

unread,
Jun 15, 2007, 4:32:30 PM6/15/07
to
In message <wbRkcPIo...@mail.psp.co.uk>, Thomas Lee <t...@psp.co.uk>
writes

>In message <2BBEA17E-3375-4BD9...@microsoft.com>,
>GodOfLions <GodOf...@discussions.microsoft.com> writes
>>I'm having the same problem. I'm using an Windows XP SP2 system, and
>>it does not matter what account I RunAs with Powershell Ctrl+C does
>>not stop the process. The only way for me to stop the process is to
>>use Task Manager to Kill PowerShell.
>
>Not sure what I did last time - but I can now reproduce this 'feature'.
>
>Time to file a bug me thinks.

https://connect.microsoft.com/feedback/ViewFeedback.aspx?FeedbackID=28307
5&SiteID=99

Feel free to vote.

Al Dunbar

unread,
Jun 18, 2007, 12:21:03 AM6/18/07
to

"Thomas Lee" <t...@psp.co.uk> wrote in message
news:$$snF0Ied...@mail.psp.co.uk...

This might not be a powershell issue, per se. I get similar behaviour on XP
SP2 when I run cmd.exe under alternate credentials - even if the alternate
credentials are the same as the ones I use to invoke runas. There are a
number of things that work somewhat differently via runas, for example,
windows explorer needs an explicit refresh when you are viewing a folder in
which a file is created, renamed, or deleted.

/Al


0 new messages