Category: Windows

How to troubleshoot PowerShell scripts not running under a scheduled task

Situation: you have written a PowerShell script that runs fine when you launch it from PowerShell directly, but fails to start or run when you try to plug it into a schedule task. What went wrong? This post is an outline of common reasons that your script fails to run in a scheduled task. Always … Continue reading How to troubleshoot PowerShell scripts not running under a scheduled task

Windows event log custom source tips

Good-old Windows event logs are a great location to write events for automation tools and scripts. It may not be flashy, but it provides key functionality for service engineering teams: It's easy to register custom sources for your applications. It has configurable log size and rollover options so you don't need to worry about handling … Continue reading Windows event log custom source tips