Tuesday, August 28, 2012

Ax 2012 Ax Util commands


 

run cmd

To clear screen cls

c:\ d:

d: \ cd "D:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities"
OR
In explorer go to D:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities
Click on the folder holding shift and select Open in "command window from here"

To list all the axutil commands:
------------------------------------
d:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities> axutil /?

To export the modal, If modal has space then use " "
-------------------------------------------------------------
d:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil export /model:hks1 /file:"C:\AxModal_Backup\hks1"

d:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil export /model:"USR Model" /file:"C:\AxModal_Backup\Usr Model"

To delete a model:
----------------------
d:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil delete /model:"hks1" /noPrompt

To delete a layer
d:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil delete /Layer:usr

To import a modal using Config
--------------------------------------
d:\Program Files\Microsoft Dynamics Ax\ManagementUtilitieses>axutil import /file:"C:\Axmodal_backup\hks.modal" /config:"DemoDataAx"

view modal contents based on model id
----------------------------------------------
D:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil view /model
:"28" /config:"DemoDataAx"
d:\Program Files\Microsoft Dynamics AX\60\ManagementUtilities>axutil delete /model:"test12345" /noPrompt /config:"DemoDataAx"