Skip to content

How do I set up Microphone and Camera access in EC2 Windows Server Instances?

3 minute read
Content level: Advanced
0

This guide walks you through enabling camera and microphone functionality on EC2 Windows Server instances.

Overview:

By default, Microsoft Windows Server and AWS EC2 Windows AMIs don't support camera and microphone access. However, you can enable these features to support media applications, gaming software, and webcam-based tools on your Windows Server instances.

Solution Options:

Option 1: Install Remote Desktop Services (RDS) Role:

Installing the RDS role activates additional RDP features that enable microphone and camera pass-through capabilities.

Important consideration: RDS requires a Microsoft license. After installation, you have approximately 120 days to purchase and activate a license from Microsoft or an authorized reseller. Please follow below references from Microsoft website for detailed information on this.

[+] Licensing Remote Desktop Services - https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-client-access-license

[+] Activating Remote Desktop License Server - https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/rds-activate-license-server

Installation steps: On your EC2 instance:

  1. Launch Server Manager from the Start menu
  2. Navigate to Manage → Add roles and features
  3. Proceed through the wizard until you reach Server Roles
  4. Select Remote Desktop Services and click Next three times
  5. Check Remote Desktop Session Host (a popup will appear requesting additional features)
  6. Click Add Features, then Next, and Install
  7. Reboot your instance after installation completes

Configure your RDP client: On your client machine:

  1. Open your local Remote Desktop client and click Show Options
  2. Go to the Local Resources tab
  3. Under Remote Audio, click Settings and select Record from this computer
  4. Enable camera access under Local Devices and resources
  5. Note: Settings location may vary by RDP client; on macOS, find these under Edit PC → Devices & Audio
  6. Return to the General tab, enter your instance IP address, and connect
  7. Accept the trust prompt to pass local resources to the remote computer
  8. Once connected with Windows Audio service enabled, your microphone and camera should appear in recording devices.

Option 2: Use Amazon WorkSpaces:

Amazon WorkSpaces uses the WSP protocol, which natively supports audio, microphone, and camera pass-through without additional server configuration. WorkSpaces requires Active Directory, but you can minimize costs by using Simple AD with the free tier instead of fully managed AD.

Resources:

Amazon WorkSpaces Overview

WorkSpaces Administration Guide

Peripheral Devices Support

Option 3: Use Amazon NICE DCV Client:

On your EC2 instance:

  1. Install the NICE DCV server agent following the Windows installation guide
  2. Configure Group Policy:
  3. Open the Local Group Policy Editor Navigate to: Computer Configuration → Administrative Templates → Windows Components → Remote Desktop Services → Remote Desktop Session Host → Device and Resource Redirection Set Do not allow supported Plug and Play device redirection to Disabled
  4. Apply changes by running 'gpupdate /force' or rebooting the instance
  5. Install the Camera app from Microsoft Store
  6. Enable camera and microphone access in Windows Privacy Settings

On your client machine:

  1. Download the NICE DCV portable Windows client
  2. Configure network access: Allow TCP port 8443 (default NICE DCV port) through Security Groups, NACLs, and Windows Firewall Allow UDP port 4172 if using QUIC protocol for enhanced performance
  3. Launch the DCV client and connect using your instance's IP address or hostname
  4. Click the settings icon in the DCV client and verify camera is enabled
  5. Test camera access from the server.