I find that if I start a process by start-process
in powershell , the new window will be closed automatically after execution complete , is it possible to keep it waiting for my further command to close?
Using Read-Host to keep PowerShell console openUsing the PowerShell Read-Host command at the end of the script ensure console windows stay open until you press enter button to end the program.
Hi Isaac, this is likely caused by a scheduled task, that tries to install a mal Chrome extension. If found, right click on this task and Delete, then restart your computer.
Global Fix: Change your registry key by adding the -NoExit switch to always leave the PowerShell Console window open after the script finishes running.
Try passing -noexit
as a parameter to powershell.exe
when you start it.
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