Script- Reset Azure VM Local Administrator credential without login to VM or Azure Portal

Purpose of this document is to explain how to re-set local administrator credential of Azure VM via PowerShell (without login to VM or without login to Azure portal).


  1. Purpose
  2. Script Overview
  3. Pre-requisites
  4. Pre-checks and readiness
    4.1 User list before any changes
    4.2 PowerShell Module readiness
  5. PowerShell Script
  6. Script Execution
    6.1 Create directory and copy the script
    6.2 Final execute of script
  7. How to reset Local Administrator password from Azure portal
  8. End of Document

Read Document

Go To Home

Facebook Comments

NS IT Automation

• Having around 20+ years of Experience in IT infrastructure operation and IT facility management. • Subject Matter Expert in different domain. • Experience on building On premise and Cloud Infra. • Solution on Virtualization.

Leave a Reply

Your email address will not be published. Required fields are marked *