From ded6656cb7bc2fd8c67261caeec1b8fd3cde8f97 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Sun, 21 Jun 2020 09:16:50 -0700 Subject: [PATCH] Update operator --- Vagrant/scripts/configure-ou.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Vagrant/scripts/configure-ou.ps1 b/Vagrant/scripts/configure-ou.ps1 index e36c07d..f75d8b2 100644 --- a/Vagrant/scripts/configure-ou.ps1 +++ b/Vagrant/scripts/configure-ou.ps1 @@ -14,7 +14,7 @@ ping /n 1 windomain.local Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Creating Server and Workstation OUs..." # Create the Servers OU if it doesn't exist $servers_ou_created = 0 -while ($servers_ou_created != 1) { +while ($servers_ou_created -ne 1) { Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Creating Server OU" try { Get-ADOrganizationalUnit -Identity 'OU=Servers,DC=windomain,DC=local' | Out-Null @@ -36,7 +36,7 @@ while ($servers_ou_created != 1) { # Create the Workstations OU if it doesn't exist $workstations_ou_created = 0 -while ($workstations_ou_created != 1) { +while ($workstations_ou_created -ne 1) { Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Creating Workstations OU" try { Get-ADOrganizationalUnit -Identity 'OU=Workstations,DC=windomain,DC=local' | Out-Null