Yesterdays Google Hangout

2 views
Skip to first unread message

Sunny Chakraborty

unread,
Feb 7, 2013, 1:11:48 PM2/7/13
to nynj-winterna...@googlegroups.com
Brendan and I did some code walkthroughs on WMI and WMI Eventing.
We didnt do much on the book.

Here is a sample of what we did:
Try this in Powershell. (copy paste)

$query =  "Select * FROM __InstanceCreationEvent WITHIN 2 WHERE TargetInstance ISA 'Win32_Process'"

Register-WmiEvent -Query $query -SourceIdentifier WMIEvtTrick -Action{$Global:I2=$event 
    }

---
then start notepad
or start any other application.

Reply all
Reply to author
Forward
0 new messages