This post is to show you how to use Windows scheduler and batch script to setup an automation to automate the mining of your favorite crypto currency (Bitcoin, Litecoin, Dodgecoin, etc…) whenever the Windows PC screen is locked, AC power plugged in and idle. The following steps are based on Pooler CPU miner program . You will also need to have a pool mining account. I assume that you already know how to setup the CPU miner to mine from a mining pool and you already know how to setup the JSON configuration file.