Help Center> Image Management Service> User Guide> Windows Operations> Installing the One-Click Password Reset Plug-In

Installing the One-Click Password Reset Plug-In

Scenarios

You are advised to install the password reset plug-in CloudResetPwdAgent before creating a private image. In this way, you can reset the password of ECSs created from the image by a few clicks. For details, see Resetting the ECS Password on the Management Console.

The CloudResetPwdAgent installation package consists of CloudResetPwdAgent and CloudResetPwdUpdateAgent. Install them in sequence after downloading and decompressing the CloudResetPwdAgent installation package.

  • ECSs created from a public image have this plug-in installed by default.
  • For ECSs created from an external image file, install the plug-in by performing the operations in this section.

Precautions

  • You can decide whether to install the CloudResetPwdAgent plug-in.
  • The plug-in has been open-sourced in the GitHub open-source platform according to GNU General Public License v2.0.
  • Not all OSs support the one-click password reset plug-in. Table 1 lists the OSs that support this plug-in.
    Table 1 OSs that support the one-click password reset plug-in

    OS Type

    OS Version

    Windows

    Windows Server 2008 R2 Enterprise 64bit English

    Windows Server 2008 R2 Enterprise 64bit Chinese

    Windows Server 2008 R2 Standard 64bit English

    Windows Server 2008 SP2 Enterprise 64bit

    Windows Server 2008 R2 Datacenter 64bit

    Windows Server 2008 R2 Standard 64bit

    Windows Server 2012 R2 Standard 64bit English

    Windows Server 2012 R2 Standard 64bit Chinese

    Windows Server 2012 R2 Datacenter 64bit English

    Windows Server 2012 R2 Datacenter 64bit Chinese

    Windows Web Server 2008 R2 64bit

    Windows Server 2008 Enterprise R2 64bit English

    Windows 2012 R2 Standard

    Windows 2012 R2 Datacenter

    Windows 2012 R2 Datacenter English

    Windows 2012 R2 Standard English

    Windows 2016 Datacenter 64bit English

    Windows 2016 Datacenter 64bit Chinese

Prerequisites

  • The ECS status is Running.
  • The ECS must have a remaining space of more than 300 MB, and data can be written to its drive C.
  • DHCP must be enabled for the VPC used by the ECS.
  • Networks of the ECS are normal.
  • The outbound security group rule of the ECS must meet the following requirements:
    • Protocol: TCP
    • Port Range: 80
    • Remote End: 169.254.0.0/16

    If you use the default outbound security group rule, preceding requirements can be met, and the ECS can be initialized. The default outbound security group rule is as follows:

    • Protocol: All
    • Port Range: All
    • Remote End: 0.0.0.0/16

Procedure

  1. Check whether CloudResetPwdAgent and CloudResetPwdUpdateAgent have been installed on the ECS.

    Start Task Manager and check whether cloudResetPwdAgent and cloudResetPwdUpdateAgent are displayed on the Services page.

    Figure 1 Checking whether the plug-in has been installed
    • If yes, no further action is required.
    • If no, go to 2.
  2. Download and decompress the CloudResetPwdAgent installation package.

    The one-click password reset plug-in can be automatically updated only if an EIP is bound to the ECS.

    The download path is as follows:

    http://cn-south-1-cloud-reset-pwd.obs.cn-south-1.myhuaweicloud.com/windows/reset_pwd_agent/CloudResetPwdAgent.zip

  3. Install the plug-in.
    1. Double-click setup.bat in both the CloudResetPwdAgent.Windows and CloudResetPwdUpdateAgent.Windows directories.
    2. Check whether the installation is successful in Task Manager.

      If you can find cloudResetPwdAgent and cloudResetPwdUpdateAgent in Task Manager, the installation is successful. Otherwise, the installation failed.

      If the installation failed, check whether the installation environment meets the requirements and install the plug-in again.