Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Changing the VM axloca...
Finance forum
Answered

Changing the VM axlocaladmin password

Posted on by 35

I've been searching for the information on how to change the axlocaladmin (or other sql user passwords) for the virtual machine with no luck.

I noticed that the passwords cannot be changed from the LCS and understood that they should be changed within the VM but what are the steps exactly? 

Thank you in advance,

Mika Hartio

  • Verified answer
    nmaenpaa Profile Picture
    nmaenpaa 101,148 on at
    RE: Changing the VM axlocaladmin password

    I would say the easiest and cheapest path is to deploy a new machine and hope that the password on that machine doesn't have "=" sign.

    If you change the password on an existing VM, you will break any maintenance activity (such as installing a platform update) that LCS attempts to do.

  • Mikaharx Profile Picture
    Mikaharx 35 on at
    RE: Changing the VM axlocaladmin password

    Dear Blue,

    I am aware of these threads. However, the general suggested solution (J:\AOSService\webroot\bin\Microsoft.Dynamics.AX.Framework.ConfigEncryptor.exe -decrypt "J\AOSService\webroot\web.config") does not work for me as I get an error message in the cmd stating that the license has been expired.

    André states in the thread you linked that:

    "there can be an issue when the password contains a '=' character. This is something that is fixed in a later version. You can check if you have such password for the SQL user(s) and possibly try to change it. Or deploy a new VM, hoping for a password generation without this character."

    This is exactly why I am looking for how to actually change the password.

    Best regards,

    Mika

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Changing the VM axlocaladmin password

    Hi Mika,

    Other threads have discussed this issue.

    community.dynamics.com/.../884431

  • Mikaharx Profile Picture
    Mikaharx 35 on at
    RE: Changing the VM axlocaladmin password

    Dear Blue,

    I would like to change the password because I am facing the following error:

    "Microsoft.Dynamics.AX.InvalidConnectionStringException: Failed to set database connection string. ---> System.ArgumentException: The value's length for key 'password' exceeds it's limit of '128'."

    I'm trying to find out how to manually change the password.

    (My demo environment is expired and thus the decryption of the web config file does not work for the error above)

    My system apparently runs a version that occasionally faces this error when the VM password contains the letter "=".

    Thanks,

    Mika

  • Blue Wang Profile Picture
    Blue Wang on at
    RE: Changing the VM axlocaladmin password

    Hi Mika,

    Did you change it because the password prompt expired?

    [View:https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/231075/lcs-environment---axlocaladmin-password-update:750:50]

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,252 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,089 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans