Run commands at startup (Server)
You can run a command when an Application Object Server (AOS) instance starts. You should exercise caution and test the commands you are using thoroughly in a development or test environment before using them in a Microsoft Dynamics AX production environment. Startup commands are not evaluated before being passed to the AOS instance, and if not correct, can cause the instance to fail to start.
Open the Server Configuration utility (Start > Administrative Tools > Microsoft Dynamics AX Server Configuration Utility).
Verify that the currently selected AOS instance and configuration are the ones you want to modify.
On the Application Object Server tab, in the Run advanced startup commands box, type the command or commands you want to run at startup, and then click OK.