From 893b6c91194cbd4c5508fc070d8ccdf319093787 Mon Sep 17 00:00:00 2001 From: Blake Drumm Date: Fri, 25 Jun 2021 14:33:57 -0400 Subject: [PATCH] Update Install-ManualDCAgents.ps1 --- Powershell/Install-ManualDCAgents.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Powershell/Install-ManualDCAgents.ps1 b/Powershell/Install-ManualDCAgents.ps1 index 7ee0a57..892069f 100644 --- a/Powershell/Install-ManualDCAgents.ps1 +++ b/Powershell/Install-ManualDCAgents.ps1 @@ -39,7 +39,7 @@ ForEach ($Computer in $AllComputers) $args = "/i " + $path_to_install + " /quiet /qn /l*v C:\Temp\SCOMAgentInstall.log " + $args # Install Ops Manager Agent Time-Stamp - Write-Host "`t - Installing MOMAgent.msi" -ForegroundColor Cyan -NoNewLine + Write-Host "`t - Installing MOMAgent.msi" -ForegroundColor Cyan start-process -FilePath "msiexec.exe" -ArgumentList $args -Wait -ErrorAction Stop sleep 1 @@ -54,7 +54,7 @@ ForEach ($Computer in $AllComputers) $path_to_install = 'C:\Temp\KB4580254-amd64-Agent.msp' $msiArgs = "/update `"$path_to_install`" /quiet" Time-Stamp - Write-Host "`t - Installing Agent Update Rollup" -ForegroundColor Cyan -NoNewLine + Write-Host "`t - Installing Agent Update Rollup" -ForegroundColor Cyan Start-Process -FilePath msiexec -ArgumentList $msiArgs -Wait -ErrorAction Stop Time-Stamp Write-Host "`t -- Complete!" -ForegroundColor Green