create a scheduled task to run python script
1. create a schedule task, give it a name
under the general tab
2. choose 'Run whether user is logged on or not'
3. check 'run with highest privileges'
under the actions tab
action: start a program
program/script: the full path to the python.exe
add arguments: the name of the python script, e.g. run_script.py
start in: the full path of the directory contains the python script, e.g. D:\script\
under the triggers tab
put int schedule settings, start, end, repeat, expire, etc.
check enabled
click OK