From 57003667e03d4eb49649a04167f15506fccfecbe Mon Sep 17 00:00:00 2001 From: Chris Long Date: Sat, 23 Mar 2019 16:33:35 +0700 Subject: [PATCH] More debugging --- Vagrant/scripts/configure-ou.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Vagrant/scripts/configure-ou.ps1 b/Vagrant/scripts/configure-ou.ps1 index 49f1cde..d1ccb55 100644 --- a/Vagrant/scripts/configure-ou.ps1 +++ b/Vagrant/scripts/configure-ou.ps1 @@ -1,4 +1,11 @@ # 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 "Checking AD services status..." +$svcs = "adws","dns","kdc","netlogon" +Get-Service -name $svcs -ComputerName localhost | Select Machinename,Name,Status Write-Host "Creating Server and Workstation OUs..." Write-Host "Creating Servers OU..." Write-Host "DEBUG: $env:computername.$env:userdnsdomain"