Welcome to TechNet Blogs Sign in | Join | Help

Browse by Tags

All Tags » events and monitoring   (RSS)

Hey, Scripting Guy! Can I Start an Event Based on When a Registry Value Is Changed?

Hey, Scripting Guy! I need to be notified when a particular registry key value gets changed. The registry value is in the HKEY_LOCAL_MACHINE hive. What I am trying to accomplish is this: I am using a script to install software. After the first piece of

Hey, Scripting Guy! Can I Format a Portable Drive When It Is Inserted Into a Computer?

Hey, Scripting Guy! I work with portable USB drives all the time. These are used for backup purposes, for temporary storage, for Sneakernet , and as a means to work with extremely large files that I do not want cluttering up the small hard disk drive

Hey, Scripting Guy! Can I Be Informed When a Portable Drive Is Added by My Computer?

Hey, Scripting Guy! I would love to be able to write a Windows PowerShell script that will inform me when a portable drive is added to my computer. Do you have ideas you could suggest? -- RC Hello RC, Microsoft Scripting Guy Ed Wilson here. Well it has

Hey, Scripting Guy! How Can I Write an Event-Driven Script?

Hey, Scripting Guy! I have a problem at work. It is not with the pointy-headed boss, but I believe the problem is probably related to him anyway. There is this application that runs on a workstation in our computer room. It is not a client server application,

Hey, Scripting Guy! How Can I Back Up a Database’s Data Folder While the Database Is Running?

Hey, Scripting Guy! I have a problem. I am trying to script the backup of a data folder used by our database application. The problem is that as long as the database service is running, the files that are used are locked, and I am unable to copy them.

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

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 Hi NL, Because

How Can I Start a Process and Then Log the User Off When That Process Ends?

Hey, Scripting Guy! How can I write a script that starts a process, waits until that process ends, and then logs the user off the computer? -- AG Hey, AG. You know, the Scripting Guy who writes this column is never one to brag, mainly because he never

How Can I Start a Process and Then Wait For the Process to End Before Terminating the Script?

Hey, Scripting Guy! How can I start a process and then wait until that process quits before terminating the script? -- FG Hey, FG. Before we answer your question, the Scripting Guy who writes this column has a confession to make: he’s the one who ruined

How Can I Monitor for the Creation of Different Processes?

Hey, Scripting Guy! How can I use one script to monitor for the creation of four or five different processes? -- BC Hey, BC. You know, it’s too bad you didn’t ask how you could monitor four or five TV shows at the same time. Had you done that we would

How Can I Determine When a Removable Drive Gets Connected?

Hey, Scripting Guy! How can I determine when a USB flash drive gets connected? -- PS Hey, PS. OK, we admit it: the Scripting Guys are lazy. (Especially on a Friday, which is the day when we have to write our Monday column.) There might be a way to monitor

How Can I Receive Notification Any Time Something is Printed to a Particular Printer?

Hey, Scripting Guy! How can I receive notification any time something is printed to a particular printer? -- IL Hey, IL. You know, one of the Scripting Guys once had a summer job in an organization where the only decent printer in the entire building

How Can I Monitor the Event Logs for the Occurrence of a Specific Event?

Hey, Scripting Guy! How can I monitor the event logs for the occurrence of a specific event? -- JP Hey, JP. Why, you use an event log monitoring script, of course. (Yes, it’s hard to believe, but they really do pay us to come up with brilliant answers

How Can I Launch Two Applications, Wait Until One Program Ends, and Then Close the Other?

Hey, Scripting Guy! Here’s what I’d like to do: I want a script that will launch two executable files. After the first application closes I’d like the script to close the second application and then quit. How can I do that? -- MK Hey, MK. You know, this

Why Does My Performance Monitoring Script Keep Returning the Same Incorrect Values?

Hey, Scripting Guy! I’m using a script to monitor process performance, but every time I run the script the percent processor time for all the processes comes out as 0. What am I doing wrong? -- JL Hey, JL. We’ve simplified your script a bit to better

How Can I Be Notified Any Time a Network Cable Gets Unplugged?

Hey, Scripting Guy! Is there a way I can be notified any time a network cable gets unplugged on a computer? -- DD Hey, DD. A lot of people, when growing up, had a grandmother or an aunt or someone somewhere who had a house with a big attic, an attic overflowing
More Posts Next page »
 
Page view tracker