Tome's Land of IT

IT Notes from the Powertoe – Tome Tanasovski

Slides and script used in WMI demo for NYC PUG on April 12th

Here is a link to the slide deck and demo script I used during Monday’s meeting.  These files will probably only be useful to you if you were at the presentation.

Also, I thought I would post the blurb from the help file regarding the special variables you can use in your script block passed to the -action parameter of Register-WmiEvent because I did not have that handy or included in my presentation, but it is very important if you expect to handle WMI events with a script action:

“The value of the Action parameter can include the $Event, $EventSubscriber, $Sender, $SourceEventArgs, and $SourceArgs automatic variables, which provide information about the event to the Action script block. For more information, see about_Automatic_Variables.”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: