3

After my system has been up for a while, I can't run powershell scripts.

  • If I right-click a PowerShell script and run it: A console window is shown, "Windows PowerShell" in the title bar, but the window content is completely blank and the script doesn't run.
  • If I run PowerShell from the Start Menu: A console window is shown, it displays the copyright notice and "Try the new cross-platform PowerShell", but I never get a prompt to type commands.
  • If I run the cross-platform PowerShell from the start Menu: Copyright notice, a notice that I'm running version 7.1.1 and version 7.1.3 is available, but no prompt to type commands.
  • If I run a normal command prompt, and run powershell from the command line: Same copyright notice, same "Try the new cross-platform PowerShell", but the powershell prompt never appears.
  • If I run a normal command prompt, and run pwsh from the command line: Same copyright notice, 7.1.1 and 7.1.3, no powershell prompt.

This problem does get solved by a reboot, but I can't be rebooting 5 times a day just to run a basic script. So far, I have not been able to identify the trigger that makes PowerShell stop working.

1
  • 2
    You should obviously upgrade 7.1.1 to 7.1.3 to see if that is part of the problem. They fixed one very interesting bug with 7.1.3 that might be applicable. You might try removing your PowerShell profiles. – Ramhound Apr 15 at 16:12

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.