I created this guide because of an experience I had while teaching. My students needed to use an application that was only available on Windows OS but the students only had macOS.

We will be touching on the technologies shown below:

image-56
  • Amazon EC2: launch a Windows Server 2019
  • Microsoft Remote Desktop: macOS application to remote desktop connect (RDP) to EC2

Amazon EC2

Launching a Windows Server EC2 Instance

  1. Sign in to your AWS Management Console.
  2. Choose Services, then EC2.
  3. In the sidebar, click Instances.
image-57
EC2 sidebar

4. Click Launch Instance.

image-58
Launch Instance button

5. Scroll down and choose Microsoft Windows Server 2019 Base.

image-59
Choose AMI page

6. At the bottom of the Choose Instance Type page, click Review and Launch. This will skip you to the Review page.

image-60
Launch with minimal configuration

7. In the Review page, click Launch. You'll be prompted to select an existing key pair or new key pair.

If you choose Create a new key pair, you need to give the new key pair a name, then download the key pair.  Then you'll be able to proceed to choose Launch Instance.

image-61
Key pair to access the instance

If you choose Choose an existing key pair, you need to select a key pair and tick the checkbox to acknowledge the use of the key pair.

image-62
Last step to launch instance

8. Click the generated Instance ID.

image-63
Accessing the EC2 Instance

9. Find and save the following information:

  • Public DNS (IP Address)
  • Username
  • Password

To get the IP Address, scroll to the right of your EC2 instance:  

image-70
IP Address of EC2 Instance

You can also find this in the Description tab below:

image-67
IP Address of EC2 Instance

10. To get the username and password, choose the EC2 instance (tick the checkbox), click Actions, then Get Windows Password.

image-68
Obtaining the username and password

You may encounter Password not available and you'll need to wait a couple of minutes.

image-71
Provisioning the auto-generated password

11. Locate the existing key pair or the newly created key pair you have downloaded in your local machine. Click Choose File.

image-72
Retrieve the key pair

12. After uploading the key pair, click Decrypt Password.

image-73

13. Copy the following information and save it in a file or clipboard. Click Close when you are done.

image-74
Information for remote desktop connection

Microsoft Remote Desktop

Installing the application and connecting to EC2 instance

  1. Open your App Store, then search for Microsoft Remote Desktop. Click Install (it shows UPDATE here as I already have installed).
image-64
Microsoft Remote Desktop in the App Store

2. After installation, Open Microsoft Remote Desktop.

3. At the top, click the + Icon and choose Desktop.

image-65
Creating a new desktop connection

4. In the PC name, copy the EC2 Instance IP address, then click Add.

image-66
Adding the IP address

5. Copy the Administrator and Password from earlier and paste it here. Hit Continue.

image-75
Signing in with the username and password

You are now connected to your Windows Server EC2 Instance.

image-76
Windows Server EC2 Instance

Note: To avoid getting charged after you have used up the free tier for EC2, either click Stop to have a lower cost, or Terminate to remove the instance and not be charged.

You have access to this by selecting the instance and choosing Actions > Instance State > Stop/Terminate.

image-77

Here's a video tutorial:

Connect with me on LinkedIn here.

image-243