diff --git a/terraform/environments/delius-mis/modules/mis_environment/templates/EC2LaunchV2.yaml.tftpl b/terraform/environments/delius-mis/modules/mis_environment/templates/EC2LaunchV2.yaml.tftpl index a8a6ed8a8c9..2dadb822150 100644 --- a/terraform/environments/delius-mis/modules/mis_environment/templates/EC2LaunchV2.yaml.tftpl +++ b/terraform/environments/delius-mis/modules/mis_environment/templates/EC2LaunchV2.yaml.tftpl @@ -8,7 +8,6 @@ tasks: content: |- # Join computer to domain if not already joined if (! ((Get-WmiObject -Class Win32_ComputerSystem).PartOfDomain) ) { - Set-DnsClientServerAddress Ethernet -ServerAddresses ("${ad_ip_list[0]}","${ad_ip_list[1]}") # Server is not joined to the domain $domainJoinUserName = "Admin" $domainJoinPassword = ConvertTo-SecureString((Get-SECSecretValue -SecretId ${ad_password_secret_name}).SecretString) -AsPlainText -Force