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.”
Like this:
Like Loading...
Related