Reset Azure VM pw for Domain Controller

后端 未结 3 1606
一向
一向 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:37

    For a DC, the reset is not supported using the normal VM Reset Password option. Instead, use a custom script:

    1. Open a new notepad window.

    2. Write: net user [Username] [Password]

    Without the brackets and replacing the default values with your own.

    1. Save it as script.ps1

    2. Navigate to the VM in the Azure Portal

    3. On the left menu under Settings > select Extensions > select Add+

    4. Select Custom Script Extension option from the list

    5. Select Create

    6. Upload the script.ps1 file

    7. Select Ok

提交回复
热议问题