Say I'm running a python script that doesn't exit properly. The powershell console does not return control to me without having to close the shell and open a new one. With Bash I can simply press Control-C to kill any process. What am I missing here?
Windows 8.1 Powershell
To kill a process, you can use the command Stop-Process
.
Or you can try Ctrl + Break shortcut.
Use the following stop-service <service>
choose a flag like -force
to force stop even if it has dependent services as well.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/stop-service?view=powershell-5.1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With