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:
- Launch Server Manager from the Start menu
- Navigate to Manage → Add roles and features
- Proceed through the wizard until you reach Server Roles
- Select Remote Desktop Services and click Next three times
- Check Remote Desktop Session Host (a popup will appear requesting additional features)
- Click Add Features, then Next, and Install
- Reboot your instance after installation completes
Configure your RDP client: On your client machine:
- Open your local Remote Desktop client and click Show Options
- Go to the Local Resources tab
- Under Remote Audio, click Settings and select Record from this computer
- Enable camera access under Local Devices and resources
- Note: Settings location may vary by RDP client; on macOS, find these under Edit PC → Devices & Audio
- Return to the General tab, enter your instance IP address, and connect
- Accept the trust prompt to pass local resources to the remote computer
- 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:
- Install the NICE DCV server agent following the Windows installation guide
- Configure Group Policy:
- 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
- Apply changes by running 'gpupdate /force' or rebooting the instance
- Install the Camera app from Microsoft Store
- Enable camera and microphone access in Windows Privacy Settings
On your client machine:
- Download the NICE DCV portable Windows client
- 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
- Launch the DCV client and connect using your instance's IP address or hostname
- Click the settings icon in the DCV client and verify camera is enabled
- Test camera access from the server.