diff --git a/enos/modules/aws_rdp_member_server/main.tf b/enos/modules/aws_rdp_member_server/main.tf index 1f631e6fe1..093b4e54fa 100644 --- a/enos/modules/aws_rdp_member_server/main.tf +++ b/enos/modules/aws_rdp_member_server/main.tf @@ -125,6 +125,10 @@ do { # add computer to domain Add-Computer -DomainName "${var.active_directory_domain}" -Credential $credential +# Enable audio +Set-Service -Name "Audiosrv" -StartupType Automatic +Start-Service -Name "Audiosrv" + Restart-Computer -Force EOF diff --git a/enos/modules/aws_windows_client/main.tf b/enos/modules/aws_windows_client/main.tf index dd24c8e0e4..14366fb22e 100644 --- a/enos/modules/aws_windows_client/main.tf +++ b/enos/modules/aws_windows_client/main.tf @@ -181,7 +181,7 @@ resource "aws_instance" "client" { ## Open the firewall for SSH connections New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 - + # Create a non-admin user to be used for RDP connection. This # is needed since the scheduled task that runs pyautogui # doesn't work in an Administrator context. @@ -197,6 +197,10 @@ resource "aws_instance" "client" { Set-ItemProperty -Path $regPath -Name "DefaultUsername" -Value $Username -Type String Set-ItemProperty -Path $regPath -Name "DefaultPassword" -Value "${local.test_password}" -Type String Set-ItemProperty -Path $regPath -Name "DefaultDomainName" -Value "$env:COMPUTERNAME" -Type String + + # Enable audio + Set-Service -Name "Audiosrv" -StartupType Automatic + Start-Service -Name "Audiosrv" EOF