<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Automating python script with MS Task scheduler on mapped network drive while logged out in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1620609#M96306</link>
    <description>&lt;P&gt;It sounds to me as if the problem is a Windows user permissions issue. Consult your IT folks about the necessary permissions for running scheduled tasks when you are not logged in.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jun 2025 20:55:48 GMT</pubDate>
    <dc:creator>BobBooth1</dc:creator>
    <dc:date>2025-06-03T20:55:48Z</dc:date>
    <item>
      <title>Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619406#M96179</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have written a python script that modifies datasets in a geodatabase that is within a mapped network drive. I want this script to run on a schedule so a specific field gets populated consistently (this is what the script does). The issue I have been having is running the task in MS Task Scheduler with the "Run whether user is logged on or not" checked. It returns the following error: "Task Scheduler failed to start "\&lt;EM&gt;ScriptName&lt;/EM&gt;" task for user "&lt;EM&gt;Domain/User&lt;/EM&gt;". Additional Data: Error Value: 2147943726."&lt;/P&gt;&lt;P&gt;When I run the same task but with "Run only when user is logged on" selected, it works fine.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a list of what I have already tried:&lt;/P&gt;&lt;P&gt;-creating a batch file to access the network drive using "net use" (with user and pass stored in MS Credential Manager) then calling the script and python.exe interpreter for arcpro&lt;/P&gt;&lt;P&gt;-same batch file but instead of python.exe, used proenv.bat, but this just opened the command window and set the environment to python without running the script&lt;/P&gt;&lt;P&gt;-use UNC paths for all paths to network files (the datasets in the gdb and the batch and python files themselves in the network)&lt;/P&gt;&lt;P&gt;-had the batch file stored locally to run and access network drive from within the batch file then run the python script&amp;nbsp;&lt;/P&gt;&lt;P&gt;-mapped the drive from within Task Scheduler when choosing the batch or python file as action&lt;/P&gt;&lt;P&gt;-used python.exe file as Action and .py script as Argument&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The drive is a shared drive among the organization and this gdb needs to be updated within the shared drive so I cannot work locally. I also want it to be able to run overnight when I am not on site or logged into the computer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My user is an Administrator and has Batch run access.&lt;/P&gt;&lt;P&gt;Any ideas that would help this run in Task Scheduler would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 19:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619406#M96179</guid>
      <dc:creator>sydneymd</dc:creator>
      <dc:date>2025-05-29T19:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619407#M96180</link>
      <description>&lt;P&gt;Following this&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/schedule-geoprocessing-tools.htm" target="_blank"&gt;Schedule geoprocessing tools—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;worked when set up as reported here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/how-to-schedule-a-task-to-run-when-computer-is/td-p/1329553" target="_blank"&gt;Solved: How to schedule a task to run when computer is log... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is that what you have been following?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 19:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619407#M96180</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-05-29T19:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619456#M96183</link>
      <description>&lt;P&gt;Hi Dan - yep I followed both of those, but still get the same error message.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 21:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619456#M96183</guid>
      <dc:creator>sydneymd</dc:creator>
      <dc:date>2025-05-29T21:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619508#M96187</link>
      <description>&lt;P&gt;Can you just try running a simple script of a print statement followed by importing arcpy module and then another print statement to see if any print statements get executed.&amp;nbsp; I had an issue where anti-virus software was blocking arcpy python from executing.&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2025 23:22:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619508#M96187</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2025-05-29T23:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619638#M96211</link>
      <description>&lt;P&gt;Testing the simple script worked fine when running it with "run only when user is logged on" checked, but when I switch it to "run whether user is logged on or not" it fails to connect to the user.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 16:08:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619638#M96211</guid>
      <dc:creator>sydneymd</dc:creator>
      <dc:date>2025-05-30T16:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619653#M96215</link>
      <description>&lt;P&gt;I had a similar issue, so I set the ArcGIS Pro License from Named user to Concurrent user and point to our License Manager Server then add the Service user account as a local admin on the server and it went through. Not sure if that'll work for you but try that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 16:57:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619653#M96215</guid>
      <dc:creator>GaHe01</dc:creator>
      <dc:date>2025-05-30T16:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619771#M96224</link>
      <description>&lt;P&gt;Unfortunately my organization does not have concurrent user licenses&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 20:21:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1619771#M96224</guid>
      <dc:creator>sydneymd</dc:creator>
      <dc:date>2025-05-30T20:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automating python script with MS Task scheduler on mapped network drive while logged out</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1620609#M96306</link>
      <description>&lt;P&gt;It sounds to me as if the problem is a Windows user permissions issue. Consult your IT folks about the necessary permissions for running scheduled tasks when you are not logged in.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 20:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/automating-python-script-with-ms-task-scheduler-on/m-p/1620609#M96306</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-06-03T20:55:48Z</dc:date>
    </item>
  </channel>
</rss>

