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
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]
Without the brackets and replacing the default values with your own.
Save it as script.ps1
Navigate to the VM in the Azure Portal
On the left menu under Settings > select Extensions > select Add+
Select Custom Script Extension option from the list
Select Create
Upload the script.ps1 file
Select Ok