在忘記管理員密碼的情況下,可以遠程重置服務器的管理員密碼是雲計算服務的一個優勢,這是使用自己的物理服務器無法實現的。
但是,在使用Azure的時候,我們找遍Azure管理控制台也沒找到可以重置虛擬機(Virtual Machine)管理員密碼的地方。
Google一下發現原來Azure根本沒有提供這個功能:
- 來自微軟Windows Azure論壇上的官方回答(Forgotten VM Password):
As of now there is no way Subscription owner to reset the password externally or outside the Azure VM.
- 來自serverfault的問答(How to reset the admin password on VM on Windows Azure?):
A:The virtual machines on Windows Azure allow to connect from RDP. But how can I reset the administrator password if the password has been lost?
Q:There is no way to do this now, but you can get the data off of the drive if you need to. Please see the Microsoft answer here.
來看看其他雲計算服務商的情況:
1、亞馬遜AWS的EC2虛擬機是可以重置管理員密碼的,操作方法如下(來自EC2 Windows password recover):
I ran across this scenario and found a solution using the unique setup of EC2 on another site: http://www.smattie.com/2012/01/23/video-remotely-reset-windows-password-via-ec2-config-service/
The video is long, so to summarize the steps:
- Create a new scratch EC2 instance running 2003 server, and log into it.
- Shut down your lost instance (the one you can't log into) from the AWS console.
- On the EC2 console, go to Elastic Block Store/Volumes and find your C: disk volume, and Detach it.
- On that same volume, attach it to your scratch EC2 instance. You can see it appear in Disk Manager and you'll get a new D: drive letter.
- Go to D:\Program Files\Amazon\Ec2ConfigService\Settings\ and edit config.xml with notepad
- The first setting in the file is for the Ec2SetPassword plugin; change the State field from Disabled to Enabled. Save & close.
- On the AWS console, Detach the volume from the scratch instance (don't worry, it safely detaches from Windows)
- Attach the volume to your original lost instance, as /dev/sda1
- Start the instance. After a few minutes, run the Get Windows Password function which will have the newly generated password.
2、阿里雲直接可以在管理控制台重置雲服務器的管理員密碼,操作時需要進行手機或郵箱驗證。
建議Azure能夠增加這個功能,並希望這個功能成為雲計算服務的標配。