Share via


Error message: "VMAccess Extension does not support Domain Controller."

Question

Thursday, December 7, 2017 1:10 PM | 1 vote

Dear,

I have set up an ADFS test lab in my Azure Portal. After some time I have tryed to log-in, but somehow I got asked to change my password because it's expired. Now I know that this is my admin password, that I have made during making the VM and it should be(correct me if wrong) automatically set to password never expire? When I try to reset my DC password or local password I get the following errormessage: Error message: "VMAccess Extension does not support Domain Controller."

Now I managed to login to the ADFS server with my ADFS service account. But I want the domain/local account issue resolved...

Could anyone help me out with this issue? Thanks in advance!

Regards,

Kerim Tupkovic

All replies (8)

Thursday, December 7, 2017 6:22 PM

To clarify: Have you referred to this article?

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members


Wednesday, December 13, 2017 4:04 PM

I have the same issue here. My VM is a Domain Controller which is deallocated and restarted again. 

Resetting a domain account using the VMAccess Extension was alway possible, but since a month or so this does not work anymore with the error Error message: "VMAccess Extension does not support Domain Controller."

How should I get in to the VM now it's restarted again?


Thursday, December 14, 2017 7:49 PM

Have you referred to the above mentioned article?

Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members


Friday, December 15, 2017 8:25 AM | 1 vote

I'm not sure what you mean, the article you mentioned is for Linux VMs. This is a Azure Resource Manager Windows VM. Could you please explain?


Friday, December 15, 2017 1:50 PM | 6 votes

I got an update from Microsoft support. They suggest to run a custom script to reset the password. See steps below:

Create a script in a notepad as script.ps1

             net user <Username> <Password>

  • Select the VM you want to change domain password
  • Go to extensions in the VM left panel
  • Click on +ADD at the top
  • Select custom Script Extension option

After selecting the Custom Script extension option.

  • Click on the Create option in the bottom of the page
  • Browse the script file saved on your desktop.
  • Then Click OK

Then the script gets uploaded and you will get a notification in notification bar.

You could also do this by using PowerShell (you need to host the script somewhere on webserver):

Set-AzureRmVMCustomScriptExtension -ResourceGroupName myRG `
    -VMName myVM `
    -Location vmLocation `
    -FileUri "http://url/script.ps1" `
    -Run 'script.ps1' `
    -Name resetpassword


Monday, January 29, 2018 5:52 PM

I have the same issue here. My VM is a Domain Controller which is deallocated and restarted again. 

Resetting a domain account using the VMAccess Extension was alway possible, but since a month or so this does not work anymore with the error Error message: "VMAccess Extension does not support Domain Controller."

How should I get in to the VM now it's restarted again?

I'd also like to know when this stopped working. As Mark says, this always worked before, but now doesn't. The VM gets stuck in an endless loop because Windows tells you the password has expired and must be changed, but does not allow you to change it.


Wednesday, February 7, 2018 8:57 AM

Hi Mark,

This worked like a charm! Thanks. Saved my life.


Monday, October 14, 2019 7:20 AM

Hi Mark,

This worked like a charm! Thanks. Saved my life.

Thanks,

Vaibhav