Connect from Computer to Microsoft Windows Server 2022 Instance

Connect from Computer to Microsoft Windows Server 2022 Instance

  1. In the EC2 interface:

    • Select Instances
    • Select Windows-instance
    • Select Connect

Instance Connect Step 1

  1. In the Connect to Instance interface:

    • Select RDP Client (port 3389)
    • Select Download Remote Desktop File to your computer
    • Select Get Password to use the provided password for connection

Instance Connect Step 2

  1. In the Get Windows Password interface:

    • Select Browse
    • Choose kp-windows.pem from your local computer
    • Check the Private Key option and select Decrypt Password

Instance Connect Step 3 Instance Connect Step 3

  1. After successfully decrypting the password:

    • Copy the provided password for use in the connection via port 3389

Instance Connect Step 4

  1. Continue with the following steps to connect:

    • Open the Remote Desktop File you downloaded on your device
    • The Remote Desktop Connection interface will appear, select Connect

Instance Connect Step 5

  1. Authenticate in the Windows Security section using the provided password, then select OK

Instance Connect Step 6 Instance Connect Step 6

  1. Select Yes

Instance Connect Step 7

  1. After successfully connecting to the Microsoft Windows Server 2022 instance, the instance’s configuration information will be displayed on the screen.

Instance Connect Step 8

Prepare Sysprep for lab 5.4 Launch an Instance from a Custom AMI

  1. Because we are deploying EC2 Microsoft Windows Server 2022 Base, in the search box, enter and select EC2LaunchSettings

create vpc for linux instance

  • Note: in fact, if you run other versions of windows such as: Windows Server 2008, Windows Server 2012 R2,… see more configuration instructions in document AWS
  1. The EC2LaunchSettings window appears, in the Administrator Password settings section, select Random
  2. At the bottom of the page, Select Shutdown without Sysprep

create vpc for linux instance

  1. You asked about Windows need your confirmation to execute sysprep for creating the image and shutting down the virtual machine! select Yes

create vpc for linux instance

  • Result:

create vpc for linux instance

  1. At some point you will see the RDP notification: session has ended. Quickly return to the EC2 console and notice that EC2 Windows-instance has stopped

create vpc for linux instance

create vpc for linux instance

  • Noted: By Shutting down with Sysprep your AMI will remove unique information, such as the version security identifier (SID), computer name and driver. You will avoid the error of not being able to Get password as shown below:

create vpc for linux instance

  • Of course, when you encounter a warning as shown below, you can proceed to reset the key pair through the lab exercise 5.5 Solving the Issue of Lost Access Key Pair. However, imagine when you have dozens or hundreds of EC2 instances created from this Image through lab 5.4, you will also need a corresponding number of times to reset the key pair, instead, use the sysprep function to retrieve the new passwordand make accessing the EC2 windows instance more convenient.