Business requirement: Schedule full CIL compile
A full CIL compile can be run from the AX client, but you cannot schedule it. This post describes how to achieve scheduling a full CIL compile recurring using Task Scheduler.
Solution: step-by-step scheduling with Task Scheduler
Open Task Scheduler, create a new folder for your Dynamics AX tasks and choose Create new Task.
In the Triggers tab define the recurrence pattern for your task.
In the Actions tab define the task to run, being the full CIL compile.
In the Program/script field point to your AX client, normally it should be located in "C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin\Ax32.exe".
As arguments you specify the following:
-aos2=<AOSServer>:<portnumber> -startupcmd=CompileIl -lazytableloading –lazyclassloading where you replace <AOSServer> and <portnumber> with your actual AOS and port.
You are done: CIL compile is scheduled to run recurrent, just make sure you have a remote desktop session open to the server where you have scheduled it, so it can kick off at the scheduled time.