How to Reset Remote Desktop Password

GN, Yashas (Cognizant) 0 Reputation points
2023-02-06T07:41:01.81+00:00

Reset remote desktop password

Azure Dedicated Host
Azure Dedicated Host
An Azure service that provides a dedicated physical server to host Azure virtual machines for Windows and Linux.
48 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 22,211 Reputation points
    2023-02-06T08:51:26.2966667+00:00

    Hello @GN, Yashas (Cognizant) ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.
    If this is an Azure VM, and you need to reset the local administrator password, you can do that in below 2 ways

    1. Reset by using the Azure portal.
    2. Reset by using the VMAccess extension and PowerShell

    $SubID = "<SUBSCRIPTION ID>"

    $RgName = "<RESOURCE GROUP NAME>"

    $VmName = "<VM NAME>"

    $Location = "<LOCATION>"

    Connect-AzAccount

    Select-AzSubscription -SubscriptionId $SubID

    Set-AzVMAccessExtension -ResourceGroupName $RgName -Location $Location -VMName $VmName -Credential (get-credential) -typeHandlerVersion "2.0" -Name VMAccessAgent
    Hope this helps

    If this is any other VM or machine, do let me know in your comments by tagging me.

    If the answer provided by has helped, please 'Accept as Answer' and Upvote using "Thumbs-up" so that it can improve discoverability for others in the community looking for help on the same topic.

    0 comments No comments