viernes, 27 de enero de 2023

How to change Password in a VM DC in Azure

 

Hello, 

As you know, in Azure VMs there is an specific option to change the password of the local administrator account. However this option doesn't change the Password of the domain administrator account if this VM is a Domain controller, and as you know as well, there isn't local administrator account in a Domain controller. 

Reset password option


So, how am I able to fix?  Easy answer, you have to launch a powershell Script that change this password.

Go to --  VM -- Operations -- Run command -- RunPowershellScript


$user="adminaccountnmame"

$NewPass="NewPassword"

Set-ADAccountPassword -Identity $user -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "$NewPassword" -Force) 




Regards

No hay comentarios: