<?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: Log into ArcGIS Pro through a script in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1605314#M74027</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15530"&gt;@RhettZufelt&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you explain how you do this:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;My workaround for this is to run a scheduled task every week that opens Pro, pauses a few seconds, then closes Pro.&amp;nbsp; This keeps the credentials up to date and keeps my scheduled tasks running. " ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think I may have to do this also. What if a different user has opened ArcGIS Pro on the server - does that cause the tasks to not run?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Apr 2025 19:02:30 GMT</pubDate>
    <dc:creator>AndreaB_</dc:creator>
    <dc:date>2025-04-11T19:02:30Z</dc:date>
    <item>
      <title>Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1391381#M70013</link>
      <description>&lt;P&gt;Due to our server settings, our arcpro logs us out every time we log out of the computer. This makes it impossible to schedule arcpy tasks in task scheduler. Is there a way to log in remotely without needing arcpy since we need to log in to initialize it?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 19:20:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1391381#M70013</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2024-03-05T19:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1391491#M70014</link>
      <description>&lt;P&gt;you should be able to set up a python script to run through windows task scheduler on your server. I did this for about 20+ scripts that ran on a server on schedules ranging from every few minutes to hourly, daily and weekly. I'll dig around and see if i have any additional details I can share with you, its been a while since i fussed with this. Hopefully someone doing this more recently will chime in.&lt;/P&gt;&lt;P&gt;Here are a couple of links that might help, one is a couple of years old, the other a bit more recent.&lt;/P&gt;&lt;P&gt;&lt;A title="schedule a python script with windows task manager" href="https://community.esri.com/t5/python-documents/schedule-a-python-script-using-windows-task/ta-p/915861" target="_blank" rel="noopener"&gt;schedule a python script with windows task manager&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/get-started/installing-python-for-arcgis-pro.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/2.8/arcpy/get-started/installing-python-for-arcgis-pro.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the last one scroll to the bottom and read the section on running python outside of Pro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 21:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1391491#M70014</guid>
      <dc:creator>clt_cabq</dc:creator>
      <dc:date>2024-03-05T21:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1391542#M70015</link>
      <description>&lt;P&gt;Thank you for these, I will look over them. We are just particularly struggling with getting one service account to run them. Others work fine.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 23:01:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1391542#M70015</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2024-03-05T23:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1392093#M70022</link>
      <description>&lt;P&gt;This might also be useful&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/best-practices-document-for-setting-up-automated/m-p/1359651#M69390" target="_blank"&gt;https://community.esri.com/t5/python-questions/best-practices-document-for-setting-up-automated/m-p/1359651#M69390&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've&amp;nbsp; found the it is best to run the scheduled program under a Single Use License&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 19:59:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1392093#M70022</guid>
      <dc:creator>DonMorrison1</dc:creator>
      <dc:date>2024-03-06T19:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1393253#M70028</link>
      <description>&lt;P&gt;I installed Pro on the server machine, &amp;nbsp;logged onto the server machine with the service account, logged into Pro with appropriate user, and select the Sign in automatically option.&amp;nbsp; This stores the credential so that it automatically logs me in with the last used credentials.&lt;/P&gt;&lt;P&gt;The scheduled tasks will then also use this last logged in credentials to run the python script(s).&amp;nbsp; However, there is a time out on this, I believe it is two weeks.&amp;nbsp; So, if it's been too long since the appropriate user has logged onto Pro manually (or if a different user has logged on in between), it will fail.&amp;nbsp; (So, we don't allow 'other' users to run Pro on the server machine)&lt;/P&gt;&lt;P&gt;My workaround for this is to run a scheduled task every week that opens Pro, pauses a few seconds, then closes Pro.&amp;nbsp; This keeps the credentials up to date and keeps my scheduled tasks running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RhettZufelt_2-1709915830266.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/97411iE28AC1BCB9DBFCB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RhettZufelt_2-1709915830266.png" alt="RhettZufelt_2-1709915830266.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 16:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1393253#M70028</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2024-03-08T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398658#M70100</link>
      <description>&lt;P&gt;Yeah I've seen this as a possibly, ours just logs out right away so I don't have the option to open it back up and it still be logged in.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 18:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398658#M70100</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2024-03-20T18:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398716#M70102</link>
      <description>&lt;P&gt;I don't 'log out', just close Pro.&lt;/P&gt;&lt;P&gt;As long as the Sign in automatically was checked last login, and didn't log out, it works.&lt;/P&gt;&lt;P&gt;Do you not see the Sign in automatically checkbox?&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 20:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398716#M70102</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2024-03-20T20:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398772#M70105</link>
      <description>&lt;P&gt;Yes, we have clicked that checkbox. It does not stay signed in. On my desktop if I close out of pro and reopen I am still logged in. It doesn't work on my server machine, no matter if the checkbox is checked&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 22:16:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398772#M70105</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2024-03-20T22:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398773#M70106</link>
      <description>&lt;P&gt;That's too bad.&amp;nbsp; Not sure if it is a setting on your Server, Domain or something else.&lt;/P&gt;&lt;P&gt;The only 'servers' I have tested this on is Windows Server 2016 Datacenter, and Window Server 2019 Datacenter.&amp;nbsp; Has been working on both for a couple years now.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 22:24:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1398773#M70106</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2024-03-20T22:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1605314#M74027</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/15530"&gt;@RhettZufelt&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Can you explain how you do this:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;My workaround for this is to run a scheduled task every week that opens Pro, pauses a few seconds, then closes Pro.&amp;nbsp; This keeps the credentials up to date and keeps my scheduled tasks running. " ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think I may have to do this also. What if a different user has opened ArcGIS Pro on the server - does that cause the tasks to not run?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 19:02:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1605314#M74027</guid>
      <dc:creator>AndreaB_</dc:creator>
      <dc:date>2025-04-11T19:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Log into ArcGIS Pro through a script</title>
      <link>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1607767#M74067</link>
      <description>&lt;P&gt;Yes, unless the user that logged in has the appropriate permissions, when a different user logged in, it broke the process as it signs in 'automatically' with the last logged in user.&lt;/P&gt;&lt;P&gt;We don't allow other users are not allowed to log in for this reason.&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 18:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/log-into-arcgis-pro-through-a-script/m-p/1607767#M74067</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2025-04-21T18:03:13Z</dc:date>
    </item>
  </channel>
</rss>

