If you did not specify a logon password when you created an Elastic Compute Service (ECS) instance or if you forget the logon password of an instance, you can use Cloud Assistant to set a password or change the password for the instance. You can also use the password reset feature to set or change the password for an instance in the ECS console. After the logon password of an instance is set or changed by using Cloud Assistant, the new password takes effect immediately without the need to restart the instance.
- Log on to the ECS console.
- In the left-side navigation pane, choose .
- In the top navigation bar, select a region.
- Click the ID of the instance on which you want to run a Cloud Assistant command to go to the Instance Details page.
- Click the Remote Commands/Files tab and click Send Remote Commands.
- Configure the parameters described in the following table.
Parameter Description Command Type The type of the command.
- For Linux instances, Shell is selected by default.
- For Windows instances, select Bat or PowerShell.
Retain Command Specifies whether to save the command.
After you save the command, you can use Cloud Assistant to view, modify, or run the command again.
Command Content The content of the command. In the Command Content field, enter one of the following commands based on the operating system of your instance to change the logon password:
net user "Administrator" "<yourPassword>"
- Replace <yourPassword> with a new password.
- The password must be 8 to 30 characters in length. It must contain at least three of the following character types: uppercase letters, lowercase letters, digits, and special characters. The password of a Windows instance cannot start with a forward slash (/).
- Click Run.
If Success is displayed in the Command Output section, the password is set. Then, you can check whether the new password can be used to log on to the instance. For more information about how to log on to the instance, see Guidelines on instance connection.