This may not apply to you, but one issue I had to deal with when writing scripts to run as scheduled tasks is how to address files that are on a server. Since you're not logged in, the system running the script won't know what your drive mappings are, so you need to replace references to networked drives with UNC conventions. For example, if your script refers to a file on your H: drive you will need to use r'\\servername\home\username\...' instead (your actual drive mappings may vary).