diff --git a/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 b/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 index 905534bab3..4a2508c262 100644 --- a/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 +++ b/enos/modules/aws_rdp_member_server_with_worker/scripts/setup.ps1 @@ -32,6 +32,18 @@ $Task = Get-ScheduledTask -TaskName "boundary" $Task.Settings.ExecutionTimeLimit = "PT0H" # zero hours Set-ScheduledTask $Task +# Install chocolatey (package manager) +powershell -c "irm https://community.chocolatey.org/install.ps1|iex" + +# Refreshes env to get choco on path +$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") +$env:ChocolateyInstall = Convert-Path "$((Get-Command choco).Path)\..\.." +Import-Module "$env:ChocolateyInstall/helpers/chocolateyInstaller.psm1" +refreshenv + +# Install ffmpeg for session recording +choco install ffmpeg -y + # Restart the computer to apply changes # Needed for adding the computer to the domain from the user_data script shutdown -r -t 10