Reset Azure VM pw for Domain Controller

后端 未结 3 1605
一向
一向 2021-01-27 08:54

We\'re using an azure vm as a domain controller and for some reason the local administrator\'s pw has expired. When trying to reset the pw I get the following error message: \"V

3条回答
  •  [愿得一人]
    2021-01-27 09:52

    MS now have this covered with PowerShell access for owners/admin.

    1. Navigate to the VM in the Azure Portal.

    2. On the left menu:

      2a. enter "run" into the search textbox and press enter, then click on 'Run Command'

      OR

      2b. navigate to Operations > Run command

    3. Click on EnableAdminAccount then click Run. Use the X in the top right to close the window, and wait for the notification when the script finishes. Select EnableAdminAccount again to see progress if necessary.

    4. If step 3 succeeds, cick on "RunPowerShellScript".

    5. In line numbered 1 enter "net user [Username] [Password]", then click Run. The [username] here is the RDP user to login with local owner/admin rights.

    6. Job done. You should now be able to RDC to your server using the local admin [username] as the login name (ie. \username).

提交回复
热议问题