Solution for problems with password changed to default password after Windows 2008 mirroring restart

Source: Internet
Author: User

1. Execute regedit in cmd to open the registry:

Modify Hkey_local_machine\software\wow6432node\cloudbase solusions\ Cloudbase-init below all UUID below the value of Setuserpasswordplugin in plugins, change it to 1

2. Modify the source code:

C:\Program Files (x86) \cloudbase Solutions\cloudbase-init\python27\lib\site-packages\cloudbaseinit\metadata\ services\httpservice.py

Will:

@property

def can_post_password (self):

Try

Self._get_meta_data (Self._post_password_md_ver)

Return True

Except base. Notexistingmetadataexception:

Return False

Switch

@property

def can_post_password (self):

Return False

Note: Do not paste the copy, directly in the source code modification; return False note alignment, align to def and press four spaces.

Solution for problems with password changed to default password after Windows 2008 mirroring restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.