原因可能是你所在的服務器可能是RODC
解決方法:
在後邊加入-Server參數制定可寫域控制器。
$pwd=convertto-securestring "password" -asplaintext -force
Set-ADAccountPassword testuser -Reset -NewPassword $pwd -Server bjsite01-dc01.contoso.com
原因可能是你所在的服務器可能是RODC
解決方法:
在後邊加入-Server參數制定可寫域控制器。
$pwd=convertto-securestring "password" -asplaintext -force
Set-ADAccountPassword testuser -Reset -NewPassword $pwd -Server bjsite01-dc01.contoso.com