Scripting Blog [archived]

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

Use a PowerShell Module to Work with WMI Permanent Events

 Summary: Learn how to use a Windows PowerShell module to work with WMI permanent events. (image) Hey, Scripting Guy! Your posts this week on permanent event consumers have been really cool. I am wondering, if they are so useful, why there is not a Windows PowerShell cmdlet to allow one to interact with them?-- ST (image) Hello ...

Use PowerShell to Monitor and Respond to Events on Your Server

Summary: Learn how to use Windows PowerShell to monitor and to respond to events on your computer or server without the need to run a script.   (image) Hey, Scripting Guy! I am interested in learning how to use Windows PowerShell to create a Windows Management Instrumentation (WMI) permanent event consumer. Basically, what I need is a ...

Learn How to Use VBScript to Create Permanent WMI Events

   Summary: Learn how to create permanent WMI events using VBScript in this foundational blog post that provides a basis for a monitoring solution.   (image) Hey, Scripting Guy! Over the years, I have read many Hey Scripting Guy! Blog posts. They are usually humorous, easy to read, and possess a certain amount of value. One area...

Weekend Scripter: Tea Time!

  Microsoft Scripting Guy Ed Wilson here. It has been a great week with some excellent guest bloggers. It is not that I took the week off; rather, I have spent the week working on some special projects I wanted to complete. The great thing about working with guest bloggers is that I get to tap into world-class writers who are experts in ...

Hey, Scripting Guy! Can I Use WMI to Determine When Someone Logs Off a User or Shuts Down a Server?

(image)   (image) Hey, Scripting Guy! I have a Windows Server 2003 computer that I need to monitor for reboots. This may sound rather strange, but this server is more of a workstation, and we have a user mode application that runs under an actual user account. Therefore, we log on using the ID we have set up, launch the application, ...