Usually I run my python scripts on my windows 10 laptop in a powershell CLI. But for some reason after I rebooted last time, every time I run my python scripts it launches a new window.

And if I just want to display a help page the new window disappears before you can read it.

It might be a group policy that my company just pushed out, because my coworker is seeing the same thing.

Is there any way I can stop that from happening by setting an option on the CLI or something?

  • How are you running your Powershell Command-Line Interfaces and your Help Pages? Are you using some Desktop Icons? Can you edit them and append to their Command-Line String the && pause Character String? With it, the windows that are popping up on your screen should be paused, so that you are able to read them. – DOBRESCU_Mihai Dec 3 at 18:10
  • Well I'm doing a search for powershell in the windows search toolbar, and then running it that way. It used to work fine as of this morning. Then I rebooted and that's when the problem started happening. – user99201 Dec 3 at 18:58
  • Rrright. Then, after you search for it, choose the Down-Pointed Arrow and then the Open File Location Option. Then, you will have a File Explorer Window opened up. Then, search for the Windows PowerShell Icon. Edit it and apply our First Comment. – DOBRESCU_Mihai Dec 3 at 19:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.