How to enable/disable maintenance mode to turn on/off license configuration keys.


If you have tried to switch on/off your configuration keys but are greeted by the following message: “This form is read-only unless the system is in the maintenance mode. Maintenance mode can be enabled in this environment by running maintenance job from LCS, or using Deployment.Setup tool locally” then you’ve stumbled across the right article.

Follow the instructions below to place your D365 for Operations environment into Maintenance mode:

  1. Log into the server
  2. Open up command prompt and enter the following run command (note: please check that the Microsoft.AX.Deployment.Setup.exe file is in the location specified below):


J:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe –metadatadir J:\AosService\PackagesLocalDirectory –bindir J:\AosService\PackagesLocalDirectory\Bin –sqlserver . –sqldatabase axdb –sqluser axdbadmin –sqlpwd enter axdbadmin password here –setupmode maintenancemode –isinmaintenancemode true


  1. Replace ‘true’ with false if Maintenance mode needs to be switched off.

  1. Execute the command by hitting return, a window will appear then disappear shortly after.
  2. The next step is to restart the AOS by going to the ‘Internet Information Services’

  1. Once these steps have been complete Maintenance mode will be either on or off.



Choose your Reaction!
Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.