Other Sample Scripts (WMI, Web-client)

Jul 24, 2007 at 6:38 PM

The readme describes a couple other sample scripts:

An example script showing how to deal with WMI events using the
standard .net delegate/event paradigm instead of the clunky
"WaitForNextEvent" method.

An example script demonstrating multiple background downloads
using System.Net.WebClient incorporating Write-Progress progress
reporting, and Ctrl+C handling with clean-up.

I have not been able to find them. Could you send a link?


Jul 25, 2007 at 3:46 PM
Hi Rob,

I haven't updated the WebClient script yet for this release, it's on the cards this week. As regards WMI, Mow (aka the "powershellguy") wrote a piece on using PSEventing with WMI not so long ago -- check it out here: http://thepowershellguy.com/blogs/posh/archive/2007/05/09/powershell-eventing-library-pseventing-0-5-beta-released.aspx

This was written for 0.5, but the only differences are that the PSEVent object's Source property was a path to the variable, whereas in 1.0 it is the variable.

- Oisin