Pranav Raj
Pranav Raj

Reputation: 873

Powershell scripts going to sleep

I have a powershell script which loops over each file in a folder and does a lot of "high-computation" tasks on each of these files. I have multiple instances of this script running on my system.

I do use a write-host before starting each of these tasks to see when these tasks start and end.

I started these instances of the script last night and when I came today morning I noticed that some of my powershell terminal were stuck at a write-host command and when I pressed ENTER they wrote that content to terminal and continued the preocessing.

It looks like some of these terminals go to sleep. Why am i seeing this and how can i prevent this?

Upvotes: 1

Views: 557

Answers (1)

user3899725
user3899725

Reputation: 15

Disable the "QuickEdit" option in the "Windows PowerShell" Properties window.

Right click the PowerShell window to get the to the Properties window.

Upvotes: 1

Related Questions