Note: Remember, this is a “Quick and Dirty” solution. In fact, because credentials are hard-coded in the script, it is “Quick and Filthy”. But that tends to be the nature of IT-Pro quick fixes, and I found it useful for a particular...

Note: Portions of this blog are taken from an old blog post titled “Reference the Event That Triggered Your Task”
This example will demonstrate both how to trigger (launch) a PowerShell script from a specific Windows Event, AND pass parameters...