File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,10 @@ do {
125
125
# add computer to domain
126
126
Add-Computer -DomainName "${ var . active_directory_domain } " -Credential $credential
127
127
128
+ # Enable audio
129
+ Set-Service -Name "Audiosrv" -StartupType Automatic
130
+ Start-Service -Name "Audiosrv"
131
+
128
132
Restart-Computer -Force
129
133
</powershell>
130
134
EOF
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ resource "aws_instance" "client" {
181
181
182
182
## Open the firewall for SSH connections
183
183
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
184
-
184
+
185
185
# Create a non-admin user to be used for RDP connection. This
186
186
# is needed since the scheduled task that runs pyautogui
187
187
# doesn't work in an Administrator context.
@@ -197,6 +197,10 @@ resource "aws_instance" "client" {
197
197
Set-ItemProperty -Path $regPath -Name "DefaultUsername" -Value $Username -Type String
198
198
Set-ItemProperty -Path $regPath -Name "DefaultPassword" -Value "${ local . test_password } " -Type String
199
199
Set-ItemProperty -Path $regPath -Name "DefaultDomainName" -Value "$env:COMPUTERNAME" -Type String
200
+
201
+ # Enable audio
202
+ Set-Service -Name "Audiosrv" -StartupType Automatic
203
+ Start-Service -Name "Audiosrv"
200
204
</powershell>
201
205
EOF
202
206
You can’t perform that action at this time.
0 commit comments