From 09cd040b05ad449b94d69917598d963a7a1945e8 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Thu, 20 May 2021 16:46:08 -0700 Subject: [PATCH] Update install-exchange.ps1 --- Vagrant/scripts/install-exchange.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Vagrant/scripts/install-exchange.ps1 b/Vagrant/scripts/install-exchange.ps1 index 12076db..d287b7a 100644 --- a/Vagrant/scripts/install-exchange.ps1 +++ b/Vagrant/scripts/install-exchange.ps1 @@ -195,9 +195,9 @@ If (-not (Test-Path "d:\Setup.EXE")) { If (Test-Path "d:\Setup.exe") { Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Beginning installation of Exchange 2016..." # Debugging: I need to figure out how to run these commands one-by-one and have them wait properly. - Start-Process cmd.exe -ArgumentList "/k", "d:\setup.exe", "/PrepareSchema", "/IAcceptExchangeServerLicenseTerms" -Credential $credential -Wait - Start-Process cmd.exe -ArgumentList "/k", "d:\setup.exe", "/PrepareAD", "/OrganizationName: DetectionLab", "/IAcceptExchangeServerLicenseTerms" -Credential $credential -Wait - Start-Process cmd.exe -ArgumentList "/k", "d:\setup.exe", "/Mode:Install", "/Role:Mailbox", "/IAcceptExchangeServerLicenseTerms" -Credential $credential -Wait + Start-Process cmd.exe -ArgumentList "/c", "d:\setup.exe", "/PrepareSchema", "/IAcceptExchangeServerLicenseTerms" -Credential $credential -Wait + Start-Process cmd.exe -ArgumentList "/c", "d:\setup.exe", "/PrepareAD", "/OrganizationName: DetectionLab", "/IAcceptExchangeServerLicenseTerms" -Credential $credential -Wait + Start-Process cmd.exe -ArgumentList "/c", "d:\setup.exe", "/Mode:Install", "/Role:Mailbox", "/IAcceptExchangeServerLicenseTerms" -Credential $credential -Wait Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Exchange installation complete!" } Else {