So I have a script that uses the ArcPy module to create a series of PNGs. In particular I have an image that gets exported with a transparent background. The script runs great when I manually run it via CMD or IDLE. It also runs fine when I use the task scheduler with the security setting "run only when user is logged on". Using the task scheduler with this setting however, runs processes in the foreground (i.e. prompt pops up every ten min and stays for 30 seconds while script runs). When I use the security setting "run whether user is logged in or not", the prompt does not appear and the script executes, but output of one of the PNGs is not transparent, which makes running it in the background useless.
I've also tried using the "run with highest privileges" option and the "hidden" option with no luck.
Why would it work with certain settings, but not others? I just need this to run in the background.