From 173723d96f6a5e01b76309c220e2754e170c494c Mon Sep 17 00:00:00 2001 From: Chris Long Date: Sun, 24 Mar 2019 10:08:19 +0700 Subject: [PATCH] Bash -> Powershell --- Vagrant/scripts/configure-ou.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Vagrant/scripts/configure-ou.ps1 b/Vagrant/scripts/configure-ou.ps1 index d1ccb55..78dc4c5 100644 --- a/Vagrant/scripts/configure-ou.ps1 +++ b/Vagrant/scripts/configure-ou.ps1 @@ -1,8 +1,9 @@ # Purpose: Sets up the Server and Workstations OUs Write-Host "Checking DNS Settings before starting..." Get-DnsClientServerAddress | Select-Object –ExpandProperty ServerAddresses -Write-Host "Hardcoding windomain.local as localhost via the hosts file" -echo -e "\n127.0.0.1 windomain.local" >> /etc/hosts +Write-Host "Hardcoding windomain.local via the hosts file" +Add-Content "c:\windows\system32\drivers\etc\hosts" " 192.168.38.102 windomain.local" +Add-Content "c:\windows\system32\drivers\etc\hosts" " 192.168.38.102 dc.windomain.local" Write-Host "Checking AD services status..." $svcs = "adws","dns","kdc","netlogon" Get-Service -name $svcs -ComputerName localhost | Select Machinename,Name,Status