new to PS and playing around... I mistakenly creating and executed an
infinite loop while working interactively with the shell... ctrl+c and
ctrl+z didn't work to kill it, ctrl+break killed the whole shell session...
is there a way to just manually kill the currently executing command without
terminating the whole shell session?
Ctrl-C should work in most circumstances. It is possible that
powershell.exe got so wrapped up in what it was executing that it was
ignoring the signal to stop. Perhaps waiting a bit longer might have
worked?
Marco
--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com
"Marco Shaw [MVP]" <marco.shaw@NO_SPAMgmail.com> wrote in message
news:uLDw6th...@TK2MSFTNGP06.phx.gbl...
Because of the way PowerShell executes scripts though, I don't think it's
possible to hang in a script unless the script was stuck calling something
external.
Josh
"James" <no...@nowhere.com> wrote in message
news:#oxi$vhsJH...@TK2MSFTNGP03.phx.gbl...