![]() We have 3 solutions to fix this so that the PowerShell console stays open after the script has finished running: 1. If the script gives output that the user wants to see, or if it throws an error, the user won’t have time to read the text. When running a script by double-clicking it, or by right-clicking it and choosing Run With PowerShell or Open With Windows PowerShell, if the script completes very quickly the user will see the PowerShell console appear very briefly and then disappear. I originally included this as a small bonus section at the end of my other post about fixing the issue of not being able to run a PowerShell script whose path contains a space, but thought this deserved its own dedicated post. Keep PowerShell Console Window Open After Script Finishes Running
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |