If your computer runs a Windows operating system, you can use the Windows built-in Remote Desktop Connection (mstsc.exe) utility to connect to an Elastic Compute Service (ECS) instance that runs a Windows operating system. This topic describes how to use mstsc.exe on your Windows computer to upload a file to a Windows instance.


  • A Windows instance is created and in the Running state.
  • Internet access is enabled for the Windows instance.
    Note You can assign a public IP address to or associate an elastic IP address (EIP) with a Windows instance when you create the instance. For more information, see Create an instance by using the wizard and Associate an EIP with an instance.
  • An inbound rule is added to the security group of the Windows instance to allow traffic on port 3389. For more information, see Add a security group rule.


  1. Use one of the following methods to start Remote Desktop Connection (mstsc.exe) on your Windows computer.

    In this example, a Windows 10 computer is used.

    • Click the add56 icon, enter mstsc in the search box, and then press the Enter key.
    • Press the Windows logo key+R to open the Run dialog box. Enter mstsc and press the Enter key.
  2. In the Remote Desktop Connection dialog box, perform the following operations to connect to the Windows instance:
    1. Click Show Options.
    2. On the General tab, configure the following parameters:
      • Computer: Enter the public IP address or EIP of the Windows instance.
      • User name: Enter a username. The default username is Administrator.
      Note If you do not want to re-enter your username and password the next time you connect to the instance, you can select Allow me to save credentials.
    3. On the Local Resources tab, make sure that Clipboard in the Local devices and resources section is selected and click More.
    4. Double-click Drives, select the disk on which the file that you want to upload is stored, and then click OK.
    5. (Optional) If you have specific requirements for the size of the Remote Desktop Connection dialog box, click the Display tab to resize the dialog box. By default, Full Screen is selected.
    6. Click Connect to connect to the Windows instance.

      After you are connected to the Windows instance, you can perform operations on the instance.

  3. Upload a file to a Windows instance
    1. On the desktop of the Windows instance, press the Windows log key+E to open File Explorer.
    2. In the left-side navigation pane, click This PC to view the disk information of the Windows instance.
    3. On your Windows computer, double-click the driver letter of the disk on which the file that you want to upload is stored to access the disk. Then, copy the file to the Windows instance.
    Note You can also press Ctrl+C and Ctrl+V to copy files between your Windows computer and the Windows instance.