Background technical info: We have a 10.6 or 10.9.1 ArcGIS Enterprise Installation (we are in the process of migrating so I have both available), IWA, and a requirement to use gMSA accounts to run the arcgis server windows service. Our arcgis pro licenses are managed by named users through arcgis online.
I'm trying to understand if there's a way to run a scheduled script using windows task manager, without the need of an arcgis pro license. It seems like standard documentation online requires pointing to the arcgis pro-environment:
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe"
However, this requires (1) installing arcgis pro on our production server (2) running the windows task as a user that has also logged in to arcgis pro with a valid license (named user via arcgis online). I prefer not to go down that road since I don't want to use one of our arcgis pro licenses on this user.
So, we moved to using the arcgis server's python environment instead:
"C:\Program Files\ArcGIS\Server\framework\runtime\ArcGIS\bin\Python\envs\arcgispro-py3\python.exe"
However I'm finding no documentation to support this workflow. Also, it seems like going down this path only works if I run the task as the same gMSA user that runs the arcgis server windows service. Can any body confirm this??