Reset Azure VM pw for Domain Controller

↘锁芯ラ 提交于 2019-12-02 15:59:28

问题


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: "VMAccess Extension does not support Domain Controller."

I have tried unsuccessfully running the suggested script from here.

Any ideas how to solve this?


回答1:


MSFT Support let me know that it's not possible to log into an Azure VM that is a domain controller VM with the user that is created in the Azure portal when configuring the VM. You can only log in using one of the domain users.




回答2:


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



来源:https://stackoverflow.com/questions/48149387/reset-azure-vm-pw-for-domain-controller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!