Stop Powershell from exiting

后端 未结 8 1907
傲寒
傲寒 2021-02-05 06:01

I know that there is that little -noexit switch for PowerShell.

Is there anyway of staying in the shell without using that switch?

In other words, I

8条回答
  •  面向向阳花
    2021-02-05 06:53

    Not to revive a 6-year-old thread or anything, but it should be noted to anyone reading that you can end your script with

    Stop-Process -processname regedit
    

    if you have the registry tweak (global fix) enabled and actually want to run an automatically-closing script.

提交回复
热议问题