Deployment guide

Windows Server 2022

Overview

This guide covers the deployment and configuration of Windows Server 2022 using SecureAnyCloud AMIs from the AWS Marketplace. Windows Server 2022 is the latest Long Term Servicing Channel (LTSC) release from Microsoft. It features advanced multilayer security with secured-core server capabilities, TLS 1.3 enabled by default, improved performance with SMB compression, and extended hybrid cloud integration with Azure Arc and Azure Automanage hotpatching support.

What you get:

  • Windows Server 2022, preconfigured and patched.
  • AWS CLI v2 for interacting with AWS services from the command line.
  • AWS CloudWatch Agent for monitoring metrics and collecting logs.
  • AWS Systems Manager Agent (SSM) for remote management and automation.
  • The latest security patches, applied at build time.
  • 24/7 SecureAnyCloud support with a guaranteed 24 hour response SLA.

Prerequisites

Before you launch this AMI, make sure you have:

  • An active AWS account.
  • An active subscription to the Windows Server 2022 listing on AWS Marketplace.
  • An EC2 key pair for decrypting the Administrator password.
  • A Remote Desktop client, such as Microsoft Remote Desktop or mRemoteNG.

Recommended instance type: t3.large (2 vCPU, 8 GB RAM) for general workloads.

Minimum requirements: 1 vCPU, 512 MB RAM and 30 GB disk space.

1

Launch the AMI

  • Go to the AWS Marketplace and search for "Windows Server 2022 SecureAnyCloud".
  • Choose Continue to Subscribe, accept the terms, then choose Continue to Configuration.
  • Select your preferred Region and Software Version.
  • Choose Continue to Launch.
  • Choose Launch through EC2 for full control over instance configuration.
  • Select your instance type (t3.large is recommended).
  • Configure storage: 30 GB gp3 minimum for the C:\ drive. Add more EBS volumes as needed for application data.
  • Configure your Security Group with an inbound rule for TCP port 3389, with your own IP as the source, for Remote Desktop (RDP) access.

Important: Restrict RDP port 3389 to your specific IP address or corporate VPN range only. Never expose RDP to the public internet (0.0.0.0/0).

Finally, select your EC2 key pair and launch the instance.

2

Retrieve the Administrator Password

When the instance has passed both status checks (2/2), retrieve the Administrator password. Allow 4 to 5 minutes after launch for the password to become available.

  • Open the EC2 Console and go to Instances.
  • Select your newly launched Windows Server instance.
  • Choose Actions > Security > Get Windows Password.
  • Choose Browse and upload the .pem key pair file you selected at launch.
  • Choose Decrypt Password.
  • Copy the decrypted Administrator password and store it securely.

Important: The password is not available immediately after launch. Wait for the instance to reach 2/2 status checks, and allow at least 4 minutes before you try to decrypt it.

3

Connect via Remote Desktop (RDP)

  • Open your Remote Desktop client application.
  • Create a new connection and enter the public IP address of your EC2 instance. Use the private IP if you connect through a VPN to your VPC.
  • When prompted, enter the credentials. For the username, enter Administrator. For the password, use the decrypted value from Step 2.
  • If you receive a certificate warning, choose Continue to proceed. This is expected for self-signed certificates on new instances.

You are now connected to your Windows Server 2022 instance.

4

Verify Installed Components

Open a Command Prompt or PowerShell window and verify the AWS tooling:

Check AWS CLI version:

aws --version

Check CloudWatch Agent status:

Get-Service AmazonCloudWatchAgent

Check Systems Manager Agent status:

Get-Service AmazonSSMAgent

Server Components

These components are installed at build time:

  • AWS CLI: version 2.8.2, on the system PATH.
  • AWS CloudWatch Agent: version 1.3.5, in C:\Program Files\Amazon\AmazonCloudWatchAgent.
  • AWS Systems Manager Agent: version 3.1.1, in C:\Program Files\Amazon\SSM.

Note: Component versions reflect the build-time installation. Windows Update or manual upgrades may change them.

Filesystem Layout

C:\ is the system drive. It contains the Windows Server OS, installed programs and user data.

Tip: For production workloads, consider attaching additional EBS volumes (D:\, E:\ and so on) for application data, databases or log files. This separates them from the operating system drive.

Managing Services

You can manage Windows services from the Services management console or from PowerShell.

Open the Services console:

services.msc

List all running services in PowerShell:

Get-Service | Where-Object {$_.Status -eq 'Running'}

Start a service:

Start-Service -Name "ServiceName"

Stop a service:

Stop-Service -Name "ServiceName"

Restart a service:

Restart-Service -Name "ServiceName"

Using AWS CLI

The AWS CLI is available from any Command Prompt or PowerShell session. Verify it is working:

aws --help

To configure credentials for AWS CLI, either attach an IAM instance profile (recommended) or run:

aws configure

Configuring CloudWatch Agent

The CloudWatch Agent wizard lets you create a custom configuration for monitoring metrics and logs. To launch it:

cd "C:\Program Files\Amazon\AmazonCloudWatchAgent" amazon-cloudwatch-agent-config-wizard.exe

Follow the interactive prompts to select the metrics and logs you want to collect. After configuration, start the CloudWatch Agent in PowerShell:

& "C:\Program Files\Amazon\AmazonCloudWatchAgent\amazon-cloudwatch-agent-ctl.ps1" -a fetch-config -m ec2 -s -c file:configuration-file-path

Replace configuration-file-path with the full path to your generated configuration file.

Scripts and Log Files

These are the main log locations:

  • Windows Event Viewer: eventvwr.msc. It shows the system, application and security event logs.
  • CloudWatch Agent logs: C:\ProgramData\Amazon\AmazonCloudWatchAgent\Logs. These are the CloudWatch Agent operational logs.
  • SSM Agent logs: C:\ProgramData\Amazon\SSM\Logs. These are the Systems Manager Agent logs.

Troubleshooting

Cannot connect via RDP

  • Wait for the EC2 instance to reach 2/2 status checks.
  • Verify that your security group allows port 3389 from your IP.
  • Wait at least 4 to 5 minutes after launch before you decrypt the password.
  • Confirm that you are using the correct key pair for password decryption.
  • Check that the instance has a public IP address, or connect through its private IP over a VPN.

Password decryption fails

  • Make sure you are using the exact .pem key pair file that was selected at launch.
  • Wait at least 4 minutes after instance launch, because the password is not available immediately.
  • If you have changed the Administrator password, the AWS Console can no longer retrieve it.

RDP session disconnects or freezes

  • Check the instance status in the EC2 Console for any impaired status checks.
  • Verify that your internet connection is stable.
  • Reduce the display resolution and colour depth in your RDP client settings.
  • Consider using AWS Systems Manager Session Manager as an alternative connection method.

AWS CLI not recognised

  • Open a new Command Prompt window, because the PATH may not be set in existing sessions.
  • Verify the installation: where aws
  • If the CLI is missing, reinstall it from https://aws.amazon.com/cli/.

High CPU or memory usage

  • Open Task Manager (Ctrl+Shift+Esc) to identify processes that use many resources.
  • Check that Windows Update is not running a large update cycle in the background.
  • Review Windows Defender scan schedules, because scans can consume resources.
  • Consider upgrading to a larger instance type if resources are consistently insufficient.

Security Recommendations

  • Restrict RDP access. Allow port 3389 only from your specific IP or VPN CIDR range, and never from 0.0.0.0/0.
  • Change the Administrator password. After first login, replace the decrypted password with a strong, unique password.
  • Enable Network Level Authentication (NLA). Make sure NLA is enabled for RDP connections to provide an additional authentication layer.
  • Use TLS 1.3. Windows Server 2022 enables TLS 1.3 by default. Make sure your applications take advantage of it for encrypted communications.
  • Keep Windows updated. Apply Windows security updates and patches regularly.
  • Use IAM instance profiles. Attach IAM roles to the instance instead of storing AWS access keys on the server.
  • Enable Windows Firewall. Make sure Windows Firewall is enabled with appropriate rules.
  • Use Windows Defender. Windows Server 2022 includes Windows Defender with enhanced threat protection. Make sure it remains enabled and up to date.
  • Use secured-core server features. Windows Server 2022 supports secured-core capabilities. Enable Virtualization Based Security (VBS) and Credential Guard where supported.
  • Configure CloudWatch monitoring. Set up the CloudWatch Agent to monitor CPU, memory and disk metrics, and to alert on anomalies.
  • Enable AWS Systems Manager. Use SSM for patching, inventory and remote access without opening RDP to the internet.
  • Use encrypted EBS volumes. Enable EBS encryption to protect data at rest.
  • Configure backups. Set up AWS Backup or EBS snapshots for regular server backups.

Support

If you encounter any issues with this product, contact SecureAnyCloud support:

  • Email: sales@secureanycloud.com
  • Website: secureanycloud.com
  • Support hours: 24/7 with a guaranteed 24 hour response SLA

Deploy on AWS

Launch Windows Server 2022 with 24/7 support from SecureAnyCloud.

View this image

Need Help?

Our support team is available 24/7.

sales@secureanycloud.com