Skip to content

Commit

Permalink
Update Install-ManualDCAgents.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
x-limitless-x authored Jun 25, 2021
1 parent 07331bf commit 893b6c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Powershell/Install-ManualDCAgents.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 893b6c9

Please sign in to comment.