Friday, 7 October 2016

Change password of web config file [AX 7]

It is good practice to change the Administrator password. You might want to be extra secure and also change the other accounts (service accounts).

You will notice that the web config file is encrypted when it comes to passwords.

image

You can use the following commands to encrypt/decrypt the file.

 

To decrypt run this command:

C:\AOSService\webroot\bin\Microsoft.Dynamics.AX.Framework.ConfigEncryptor.exe -decrypt C:\AOSService\webroot\web.config


To encrypt run this command:

C:\AOSService\webroot\bin\Microsoft.Dynamics.AX.Framework.ConfigEncryptor.exe -encrypt C:\AOSService\webroot\web.config

 

If you make changes you may need to reboot the machine. Restarting IIS didnt work for me when I changed the passwords.

2 comments:

beeporama said...

Thank you for this helpful tip.

In platform update 5, it looks like the Administrator of the development VM no longer has access to the installed SQL Server by default. If you want or need to access it, you can use this tip to get out a username and password!

Anonymous said...

Thanks, you saved my hide when I changed the axdbadmin password in SSMS to match the one that LCS showed. Turns out that the PW on LCS was NOT the correct password, and as such I could no longer access AX on the dev box :)