Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

Hey, Scripting Guy! How Do I Display a Message and the Time a Process Was Terminated?

(image) Hey, Scripting Guy! We have this application that is supposed to run all the time. It is constantly giving us headaches and crashing. The applications vendor evidently expects it to crash all the time and has a thread that will restart it three times. After that, it is pretty much down for the count. The problem is that we never know...

Hey, Scripting Guy! How Can I Be Notified When a Process Begins?

(image) Hey, Scripting Guy! I need to be notified when a process begins. I would like to use Windows PowerShell to do this, but it does not seem to work. While I could do this in VBScript, I prefer to use Windows PowerShell. Can this be done?- NL(image) (image) Hi NL, Because we have access to the .NET Framework in Windows PowerShell, it ...

Hey, Scripting Guy! How Can I Kill Processes?

(image) Hey, Scripting Guy! It seems that every single piece of software I install adds a stub application that starts automatically. I know software makers do not do it out of maliciousness, but good grief these people act as if theirs is the most important software on my computer. In the old days, it was pretty easy. I’d go to the ...

Hey, Scripting Guy! What’s Going on in the Service Host Process?

(image) Hey, Scripting Guy! I think I might have a problem on my server. When I go into Task Manager, all the processes that are eating up the most CPU time and the most memory are the stupid svchost.exe process. I know this is the Service Host process and that it is being used by multiple services, but how can I know what is really going ...

Hey, Scripting Guy! How Can I Change the Priority of Each Instance of an Application?

(image) Hey, Scripting Guy! Is there any way to permanently change the priority of a process? If there isn’t, how can I write a script that will monitor for new instances of this process and then change the priority each time the application runs?-- AM(image) (image) (image) Hey, AM. You know, just yesterday we noted that Hey, Scripting ...