I have a program on my system called stopwatch.exe
, so sometimes I will have
PowerShell open, and I will enter the command. However I also use tab
completion, so I will usually enter:
stopw TAB
then press enter. However if on accident I enter:
stop TAB
Then I instead get Stop-Computer, which shuts down the computer. I have done
this on accident now at least twice, and its very annoying. Does anyone has a
solution for this problem? I know with the old shutdown.exe
, you could enter
shutdown /a
to cancel it, but I dont know if anything like that is available
with PowerShell.
https://docs.microsoft.com/powershell/module/microsoft.powershell.management/stop-computer