<?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: How to automate the workforce scripts with Windows Scheduler in ArcGIS Workforce Questions</title>
    <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870021#M1483</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What types of errors or logs are generated. You need to make sure that the script is using the correct python interpreter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my test task looks like (Windows Server 2016):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/430232_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Make sure you are running with a user that has the correct permissions (depends what you want to do).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/430233_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/430234_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;Make sure you set the full path to the python environment that has the ArcGIS API for Python installed in my case this is&amp;nbsp;"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you add an argument with the&amp;nbsp;full path to&amp;nbsp;the script you want to run. In my case this is "C:\Users\&amp;lt;my-username&amp;gt;\some_script.py". Add any other arguments your script by expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would test that the task can be run manually from within the Task Scheduler. Then if that's working, add a trigger to schedule it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2018 16:08:44 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-11-26T16:08:44Z</dc:date>
    <item>
      <title>How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870019#M1481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm looking for some guidance on modifying the assignment workforce scripts so I can use them with the windows scheduler and have them run in the background.&amp;nbsp; The scripts work great when I run them from the Python Command Prompt, but I'm not sure how to switch to Windows Scheduler automation. Just running the script as is in WinSch doesn't seem to work.&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3233"&gt;Craig Gillgrass&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/248893"&gt;Aaron Pulver&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 20:50:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870019#M1481</guid>
      <dc:creator>LaneHartman</dc:creator>
      <dc:date>2018-11-20T20:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870020#M1482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the same problem since switching to window 10, task scheduler wont schedule a python script either, some sort of security I believe. hope someone can answer also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2018 20:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870020#M1482</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2018-11-20T20:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870021#M1483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What types of errors or logs are generated. You need to make sure that the script is using the correct python interpreter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what my test task looks like (Windows Server 2016):&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/430232_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;Make sure you are running with a user that has the correct permissions (depends what you want to do).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/430233_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/430234_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;Make sure you set the full path to the python environment that has the ArcGIS API for Python installed in my case this is&amp;nbsp;"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you add an argument with the&amp;nbsp;full path to&amp;nbsp;the script you want to run. In my case this is "C:\Users\&amp;lt;my-username&amp;gt;\some_script.py". Add any other arguments your script by expect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would test that the task can be run manually from within the Task Scheduler. Then if that's working, add a trigger to schedule it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 16:08:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870021#M1483</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-11-26T16:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870022#M1484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, I think this will work. The python environment paths were&amp;nbsp;where I was hung up&amp;nbsp;on. I'll let you know what I find.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2018 17:24:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870022#M1484</guid>
      <dc:creator>LaneHartman</dc:creator>
      <dc:date>2018-11-26T17:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870023#M1485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;create assignments by csv script works great using this method, but I can't get the assignment monitor script to work using the the same method.&amp;nbsp; Does this have something to do with the loop that&amp;nbsp;script has in it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870023#M1485</guid>
      <dc:creator>LaneHartman</dc:creator>
      <dc:date>2018-12-03T16:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870024#M1486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;George:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you resolved your problem on your Windows 10 desktop machine with running the python based Windows Scheduled Task?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:16:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870024#M1486</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-12-03T16:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870025#M1487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah that script was mostly for a demo. You have to modify it to remove the loop (since you will schedule it to run every 1 minute or whatever).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:18:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870025#M1487</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-12-03T16:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870026#M1488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, when I add the python script windows 10 requires a password, when its scheduled to run and no password entered it wont run.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 16:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870026#M1488</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2018-12-03T16:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870027#M1489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/430683_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;This keeps on popping up, only with python in task scheduler?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 17:06:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870027#M1489</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2018-12-03T17:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870028#M1490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have both ArcMap and Pro installed on the Windows 10 machine?&amp;nbsp; If so, did you call the correct python environment to run?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did the python Windows Sch. Task ever run on this computer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 17:10:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870028#M1490</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-12-03T17:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870029#M1491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Haven't had your specific issue.&amp;nbsp; This was more script related. I've been able to run them on this machine with the "Run whether user is logged on or not" option on and "Run with&amp;nbsp;highest privilege" checked.&amp;nbsp;Also had to make&amp;nbsp;sure I was using the correct path to the ArcGIS Pro python environment in the Action dialogue box.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 18:34:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870029#M1491</guid>
      <dc:creator>LaneHartman</dc:creator>
      <dc:date>2018-12-03T18:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870030#M1492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, this modification of the assignment_monitor.py script runs fine from the command prompt without looping, but I still can't get it to work from&amp;nbsp;Windows Scheduler.&amp;nbsp; What am&amp;nbsp;I missing here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 20:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870030#M1492</guid>
      <dc:creator>LaneHartman</dc:creator>
      <dc:date>2018-12-03T20:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870031#M1493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My hunch is that you need to define the full path to the config file on line 149:&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;config.read(&lt;SPAN style="color: #6a8759;"&gt;"config.ini"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;Windows Task Scheduler may be running the script from another directory so it might not find that file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2018 22:04:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870031#M1493</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-12-03T22:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870032#M1494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Defining the full path to the config.ini file didn't seem to do anything.&amp;nbsp; I did notice that it's not writing anything to the log file either when I attempt to run the script from Windows Scheduler. I've attached screenshots of the Windows Scheduler tabs in case there is an issue there. It is set up like the create_assignments_from_csv.py script (which works well from Windows Scheduler) without the additional arguments that that script requires.&amp;nbsp; Are there some additional arguments besides the script file and path to it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2018 14:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870032#M1494</guid>
      <dc:creator>LaneHartman</dc:creator>
      <dc:date>2018-12-04T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870033#M1495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would the arguments look in the Task Scheduler? I am used to running batch files that call python and list the arguments directly in the batch, but just opening cmd and running the example code isn't working for me. The scripts only appear to work when running in the Anaconda Prompt. Since&amp;nbsp;the script works just fine when running it manually, I guess I need to open the Anaconda Prompt within Task Scheduler, but then just need direction on how to add the following arguments.&lt;/P&gt;&lt;PRE style="color: #24292e; background-color: #f6f8fa; padding: 16px;"&gt;&lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;u username &lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;p password &lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;org &lt;SPAN class="" style="color: #032f62;"&gt;"https://&amp;lt;org&amp;gt;.maps.arcgis.com"&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;project&lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #005cc5;"&gt;id&lt;/SPAN&gt; &lt;SPAN class="" style="color: #032f62;"&gt;"038a1926d2d741dc8acabefd5b2cc5d3"&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;log&lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;&lt;SPAN class="" style="color: #e36209;"&gt;file&lt;/SPAN&gt; &lt;SPAN class="" style="color: #032f62;"&gt;"../log.txt"&lt;/SPAN&gt; &lt;SPAN class="" style="color: #d73a49;"&gt;-&lt;/SPAN&gt;where &lt;SPAN class="" style="color: #032f62;"&gt;"1=1"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;I am including the full path to the script as the first parameter as you advised, but not sure how the quotes affect task scheduler. So far I am loading them into the argument text box exactly as the example shows in the line above/on your&amp;nbsp;Git site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/437862_AddingArgumentsToTaskScheduler.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:23:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870033#M1495</guid>
      <dc:creator>daveostrander</dc:creator>
      <dc:date>2019-02-21T21:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870034#M1496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had python scripts that ran perfectly in task scheduler, once we went to windows 10 task scheduler will no longer run the scripts as scheduled as its a security feature in W10&amp;nbsp;that would always require a login credential of an administrator. Are you using windows 10 and an administrator to your machine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 22:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870034#M1496</guid>
      <dc:creator>GeorgeKatsambas</dc:creator>
      <dc:date>2019-02-21T22:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870035#M1497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a good question. I am running Windows Server 2016, and have noticed that privileges seem to matter a lot more on this new OS. So, when I run the script manually using Anaconda Prompt or Python Command Prompt I always need to right click and "run as administrator" in order for the script to succeed; if not it seems to fail when attempting to write to the log file on C:. My task is set to run with highest privileges, but not sure if that equates to run as administrator or not. That said, I am an administrator on this server. Just verified that by pulling up my account settings on the machine and can see the Administrator title below my username.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 23:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870035#M1497</guid>
      <dc:creator>daveostrander</dc:creator>
      <dc:date>2019-02-21T23:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870036#M1498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to just add the following to the "Add arguments" text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;C:\Users\username\some_script.py -u aaron -p password ...&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 02:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870036#M1498</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-02-22T02:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870037#M1499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is what has been so frustrating, is that it should be just that simple. So, I have now fixed the issue, but still have questions. I had installed pro, and then later installed python using the Anaconda Distribution. I was under the impression that I could use either python installation interchangeably, right? When I setup my task I pointed my "Program/Script" text box to C:\ProgramData\Anaconda3\python.exe, which did not work. I am not sure if it is a factor, but&amp;nbsp;the default location that Anaconda 3.7 installs, also&amp;nbsp;happens to be&amp;nbsp;within a hidden folder (ProgramData).&amp;nbsp;It wasn't until I changed the "Program/Script" section of Task Scheduler to "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" that it worked. All arguments were passed in without quotes, and everything is now working as expected. So why can't I execute from python.exe in the Anaconda3 folder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I am still having trouble running the workforce scripts straight from a&amp;nbsp;standard Command Prompt. Each time I try to run the script from there I get an Import Error for module import_ssl (see below). Again, I haven't modified the underlying script (delete_assignments.py). Instead, I am just passing the parameters through. Any ideas on why this doesn't work? Is there something obvious that I am missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/437951_CMDPython3.7Error.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, thanks for all your help on this Aaron!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:39:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870037#M1499</guid>
      <dc:creator>daveostrander</dc:creator>
      <dc:date>2019-02-22T15:39:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to automate the workforce scripts with Windows Scheduler</title>
      <link>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870038#M1500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears that the issues I was having were related to my system environment variables. With all of the installs of python floating around it was a bit confusing setting this up. On my server machine I have Python 2.7 installed with ArcGIS Desktop, Python 3.6.6 installed with ArcGIS Pro, and Python 3.7.1 installed with Anaconda. I also have a ArcGIS Pro clone that installs&amp;nbsp;python&amp;nbsp;in yet another location.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have reset my system environment path variable to&amp;nbsp;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3, C:\Program Files\ArcGIS\Pro\bin\Python\Scripts, and C:\Python27. At this point everything appears to run correctly&amp;nbsp;no matter which command line I use.&amp;nbsp;Are these the recommended path variable settings? Previously I had the paths set to C:\ProgramData\Anaconda3, C:\ProgramData\Anaconda3\Scripts, and C:\Python27.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 18:06:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-workforce-questions/how-to-automate-the-workforce-scripts-with-windows/m-p/870038#M1500</guid>
      <dc:creator>daveostrander</dc:creator>
      <dc:date>2019-02-22T18:06:22Z</dc:date>
    </item>
  </channel>
</rss>

