Help Center/ Server Migration Service/ FAQs/ Agent Installation and Startup/ Why Does the Agent Not Start the First Time I Launch It?
Updated on 2025-11-06 GMT+08:00
Why Does the Agent Not Start the First Time I Launch It?
Due to the permission structure on some Windows machines, the Agent cannot be started the first time you launch it. If this happens:
- Right-click the Start menu.
- Click Run and enter cmd.
- Enter cd C:\SMS-Agent-Py2 to switch to the Agent installation directory. Run the following command:
echo {ak} {sk} {sms_domain} | SMSAgentDeploy.exe pipeReplace {ak}, {sk}, and {sms_domain} with the AK/SK pair and SMS domain name required for starting the Agent.

- You must have a valid AK/SK pair. To learn how to obtain an AK/SK pair, see How Do I Obtain an AK/SK Pair for an Account? or How Do I Obtain an AK/SK Pair for an IAM User?
- If message "[401:{"error_msg": " Incorrect IAM authentication in formation: xxx xxx not exist","error_code":"APIGW.0301","request_id":"xxx"} "]" is displayed during the execution, check whether the entered AK and SK are correct.
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.