This project is read-only.

Other Sample Scripts (WMI, Web-client)

Jul 24, 2007 at 7: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 4: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:

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