How to email output of scheduled tasks?
- by Starfish
On Unix systems, the scheduled task service will email any output that a scheduled task produces. If no output is produced, no email is sent. How can I do the same thing on Windows Server 2003 or 2008? Is there a way to call a batch file or executable that will run my task, capture the output, and email it only if there is output?
If you propose a PowerShell solution, please note that I only have PowerShell 1.0.