PowerShell default is that when you click inside the PowerShell console, PowerShell goes into "select mode" and pauses the script until you hit space, enter or escape.
I have a Script with an infinite-loop while ($true) {}
which should always run, how can I tell PowerShell to not stop the script when someone accidentally clicks into the PowerShell window?
In Windows PowerShell, this can be achieved by:
Select "Properties";
Disable "Edit Options" > "QuickEdit Mode".
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