How do I log back into my Azure VM I don't know the local Domain name?

JK101 0 Reputation points
2024-02-28T23:09:03.3966667+00:00

I have a VM on my Azure Tenant I have not logged into for over a year, and I cannot remember the local domain name to log into it. e.g. domian\username I did reset the username and password, but I still cannot log on because it seems I do not have the correct domain name. How do I get the correct domain name? I tried using certain commands but failed.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,805 questions
{count} votes

2 answers

Sort by: Most helpful
  1. TP 90,556 Reputation points
    2024-02-28T23:22:34.69+00:00

    Hi Johan,

    When connecting, have you tried .\username ? If not, please try it. Make sure you use the username that you reset the password for. I'm assuming this server isn't a domain controller.

    Please click Accept Answer and upvote if the above was helpful. Add a comment below if you still need assistance after trying above suggestion.

    Thanks.

    -TP


  2. kobulloc-MSFT 26,246 Reputation points Microsoft Employee
    2024-02-29T18:49:33.02+00:00

    Hello, @Johan Kleynhans !

    We received your feedback and want to make sure your question is answered.

    How do I log into my VM after resetting my username and password?

    If I remember correctly, it may vary slightly depending on the OS you are connecting from and the OS you are connecting to. In my repro below I am connecting from Windows 11 to a Windows 10 VM. I've reset the password and I'm asked for a username and a password. If I select More choices and then Use a different account I'm asked for an email address and a password (the username is used in place of the email address).

    If you have a specific OS that you are trying to connect to, I can reproduce the RDP connection for you.

    Initial password prompt User's image


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers to let us know that your question has been addressed. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A! User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.