Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » AWS/Azure/OpenShift » How to launch an EC2 instance
  • Webp.net resizeimage 7
    Create a new Azure Disk: How to create and attach an extra Disk to Azure Virtual Machine AWS/Azure/OpenShift
  • Exchange password
    How to block the Change Password Feature for All Users via the Exchange Administrative Center Network | Monitoring
  • Active Directory Restore issue
    AD Recovery: Fix device ran into an issue with error 0xc00002e2 Windows Server
  • How to determine Active Directory Site Name
    How to determine Active Directory Site Name Network | Monitoring
  • DELL Data Protection
    How does DELL Free Fall Data Protection work? Windows
  • upgrade 2
    How to upgrade Windows Server Evaluation to Full Version Windows Server
  • 10.0.17763.1 error
    Fix Windows 10 Setup 1809 build 10.0.17763.1 is not supported Error Windows Server
  • WinReg
    Unable to import Windows Reg File: The specified file is not a registry script Scripts

How to launch an EC2 instance

Posted on 04/06/201817/06/2025 Christian By Christian No Comments on How to launch an EC2 instance

EC2Launch is a set of Windows PowerShell scripts that replaced the EC2Config service on Windows Server 2016 and 2019 AMIs. See this article on how to configure Windows Instance Using EC2Launch for Server 2016. For other related guides, please see the following hyperlinks: Setup a Site-to-Site VPN Connection on AWS, and how to Join EC2 instance to AWS Managed AD.

Note: If a custom AMI is created from this instance, these routes are captured as part of the OS configuration and any new instances launched from the AMI will retain the same routes, regardless of subnet placement. If you wish to update these routes, please see this link.

Please, see how to add an EBS volume to AWS EC2 via the AWS Console and CLI, how to Programmatically Assess AWS Management Console and Create Resources from the Command-line using AWS CLI in Windows. In this article, you will learn how how to launch an EC2 instance.

EC2 Launch

EC2Launch performs the following tasks by default upon initial instance boot.

  1. Sets up new wallpaper that renders information about the instance. (This doesn’t apply to Nano Servers.)
  2. Sets the computer name,
  3. Sends instance information to the Amazon EC2 console.
  4. Sends the RDP certificate thumbprint to the EC2 console. (This doesn’t apply to Nano Server.)
  5. Sets a random password for the administrator account.

Upon completion of EC2Lunch service on Windows 2016 Servers, navigate to this path: C:ProgramDataAmazonEC2-WindowsLaunchConfig. Ensure to modify the LaunchConfig.json file in order not to have the administrator password changed.

Choose the option “DoNothing” if you specified a password in the unattend.xml file. If you don’t run Sysprep and don’t specify a password in unattend.xml, the system uses the password of the parent AMI. Because we do not need to run Sysprep (the default password will always be used).

Installing the Latest Version of EC2Launch for WS 2016

Use the following procedure to download and install the latest version of EC2Launch on your instances.

Here are some more interesting guides: How to add an EBS volume to AWS EC2 via the AWS Console and CLI, and How to configure Command Line Interface [Part 2].

Download and install the latest version of EC2Launch

  1. If you have already installed and configured EC2Launch on an instance, make a backup of the EC2Launch configuration file. The installation process does not preserve changes in this file. By default, the file is located in the C:ProgramDataAmazonEC2-WindowsLaunchConfig directory.
  2. Download the Launch.zip to a directory on the instance.
  3. Download install.ps1 to the same directory where you downloaded EC2-Windows-Launch.zip.
  4. Run install.ps1

Here you can download the setup needed to have EC2Launch up and running on Windows Server2016 and this will make the servers available via the run-command on AWS.

I hope you found this blog post helpful on how to launch an EC2 instance. If you have any questions, please let me know in the comment session.

5/5 - (1 vote)

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
AWS/Azure/OpenShift Tags:AWS, AWS CLI, EC2, EC2 instance, Windows Server 2016

Post navigation

Previous Post: Remote Desktop Services Setup on Windows Server
Next Post: How to get Windows PC specific Model information

Related Posts

  • Deploy Web App from GitHub
    Deploy Code from GitHub to Azure Apps Services via the Command line AWS/Azure/OpenShift
  • feature functionapp
    Deploy a function app from Visual Studio to Azure Platform AWS/Azure/OpenShift
  • S3 Bucket 1
    How to delete AWS S3 Bucket and Objects via  AWS CLI from Linux AWS/Azure/OpenShift
  • Generate SSH Keys
    Associate SSH Public key with Azure Linux VM AWS/Azure/OpenShift
  • AWS flow log
    AWS Flow Logs IAM Role Setup AWS/Azure/OpenShift
  • azure ADConnect
    Repair or Uninstall Azure AD Connect: How to uninstall Azure AD Connect AWS/Azure/OpenShift

More Related Articles

Deploy Web App from GitHub Deploy Code from GitHub to Azure Apps Services via the Command line AWS/Azure/OpenShift
feature functionapp Deploy a function app from Visual Studio to Azure Platform AWS/Azure/OpenShift
S3 Bucket 1 How to delete AWS S3 Bucket and Objects via  AWS CLI from Linux AWS/Azure/OpenShift
Generate SSH Keys Associate SSH Public key with Azure Linux VM AWS/Azure/OpenShift
AWS flow log AWS Flow Logs IAM Role Setup AWS/Azure/OpenShift
azure ADConnect Repair or Uninstall Azure AD Connect: How to uninstall Azure AD Connect AWS/Azure/OpenShift

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a

  • Webp.net resizeimage 7
    Create a new Azure Disk: How to create and attach an extra Disk to Azure Virtual Machine AWS/Azure/OpenShift
  • Exchange password
    How to block the Change Password Feature for All Users via the Exchange Administrative Center Network | Monitoring
  • Active Directory Restore issue
    AD Recovery: Fix device ran into an issue with error 0xc00002e2 Windows Server
  • How to determine Active Directory Site Name
    How to determine Active Directory Site Name Network | Monitoring
  • DELL Data Protection
    How does DELL Free Fall Data Protection work? Windows
  • upgrade 2
    How to upgrade Windows Server Evaluation to Full Version Windows Server
  • 10.0.17763.1 error
    Fix Windows 10 Setup 1809 build 10.0.17763.1 is not supported Error Windows Server
  • WinReg
    Unable to import Windows Reg File: The specified file is not a registry script Scripts

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,836 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.