问题描述
我们正在使用azure vm作为域控制器,由于某些原因,本地管理员的密码已过期.尝试重置密码时,出现以下错误消息:"VMAccess Extension不支持域控制器."
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."
我尝试从此处.
有什么办法解决这个问题吗?
Any ideas how to solve this?
推荐答案
对于DC,使用常规的VM Reset Password(VM重置密码)选项不支持重置.而是使用自定义脚本:
For a DC, the reset is not supported using the normal VM Reset Password option. Instead, use a custom script:
-
打开一个新的记事本窗口.
Open a new notepad window.
写:净用户[用户名] [密码]
Write: net user [Username] [Password]
不带括号,并使用您自己的默认值替换.
-
将其另存为script.ps1
Save it as script.ps1
导航到Azure门户中的VM
Navigate to the VM in the Azure Portal
在设置"下的左侧菜单中,选择扩展程序",然后选择添加+
On the left menu under Settings > select Extensions > select Add+
从列表中选择
选择创建
上传script.ps1文件
Upload the script.ps1 file
选择确定"
这篇关于重置域控制器的Azure VM pw的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!