Please use the below script to get list of scheduled tasks that are currently running in the target machine
import os
lOut = os.popen('schtasks | find "Running"').readlines()
for i in lOut:
print i
Sample Output:
Please use the below script to get list of scheduled tasks that are currently running in the target machine
import os
lOut = os.popen('schtasks | find "Running"').readlines()
for i in lOut:
print i
Sample Output: