# Schedule Task

**URL:** <https://forum.uipath.com/t/schedule-task/521707>\
**Category:** Robot\
**Tags:** question, robot\
**Created:** [February 28, 2023, 2:28pm UTC](https://forum.uipath.com/t/schedule-task/521707 "2023-02-28T14:28:31Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![jeevith](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/jeevith/32/288449_2.png) [@jeevith](https://forum.uipath.com/u/jeevith)\
**Post date:** [March 1, 2023, 6:38am UTC](https://forum.uipath.com/t/schedule-task/521707/8 "2023-03-01T06:38:24Z")

</div>

Hi @Handian_Sudianto,

Cross check you have set the right permissions on your Task in Windows Task Scheduler. The following thread has some pictures on how to use Task Scheduler. You can use your .bat file as an argument after pointing to powershell.exe

> [@.net robot launching question](https://forum.uipath.com/t/net-robot-launching-question/280127/3):
>
> Hi @alexander.cleak, You can write a simple bat file with the following contents and save it to your desired location. “FullPathToYourUIROBOTEXE\UiRobot.exe” execute --file “FullPathToYourProcessXAMLfile\Main.xaml” The quotes are important as some paths may have spaces which bat files do not allow. In your Task Scheduler in windows you can create a basic task [image] Click ok in the first window after checking on the yellow marker. This ensures that UiRobot.exe has the required access le…

Note that the way of using UiRobot.exe has changed. We can no longer call a .xaml file directly. The project has to be packed and then it can be called like so in community edition. The Robot has to be connected to the orchestrator if not you will get this error message

> [@A local license is required pop-up](https://forum.uipath.com/t/a-local-license-is-required-pop-up/465079/4):
>
> Hi @Yogi_Gozali, Sadly this has been enforced on all levels both Community and Enterprise version. We have tested this on our instances. Airgapped automations will no longer work if the UiRobot.exe is not connected to Orchestrator. Using Task Scheduler or invoking UiRobot.exe from other programming languages, will also not work if the host robot machine is not connected to the Orchestrator. UiPath has done this to ensure that robots are linked to licenses. I am sure they found out that many…

New execute command

```auto
C:\Users\%USER%\AppData\Local\Programs\UiPath\Studio\UiRobot.exe execute --file "C:\Users\%USER%\Documents\UiPath\_Nugets\YourProject.1.0.3.nupkg" --input "{'in_InputDataFolder':'C:\\Users\\%USER%\\Documents\\UiPath\\InputData'}" --entry "Main.xaml"

```

---

_[View the full topic](https://forum.uipath.com/t/schedule-task/521707)._
