From ffffcf3cce7b9bdbe2f7e5bc90663c12d9203fbb Mon Sep 17 00:00:00 2001 From: Chris Long Date: Thu, 9 Apr 2020 02:30:38 -0700 Subject: [PATCH] Update main.tf --- Terraform/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Terraform/main.tf b/Terraform/main.tf index 734f680..860e011 100644 --- a/Terraform/main.tf +++ b/Terraform/main.tf @@ -207,7 +207,7 @@ resource "aws_instance" "dc" { provisioner "remote-exec" { inline = [ "choco install -force -y winpcap", - "powershell -c \"$ifindex = get-netipinterface | where-object InterfaceAlias -eq 'Ethernet' | where-object AddressFamily -eq 2 | select-object -ExpandProperty ifIndex; set-dnsclientserveraddress -InterfaceIndex $ifindex\"", + "powershell -c \"$ifindex = get-netipinterface | where-object InterfaceAlias -eq 'Ethernet' | where-object AddressFamily -eq 2 | select-object -ExpandProperty ifIndex; set-dnsclientserveraddress -InterfaceIndex $ifindex -ServerAddresses ('127.0.0.1','8.8.8.8')\"", "ipconfig /all" ]