diff --git a/Proactive Remediation/winget app update - automated/procative-remediation-creation.ps1 b/Proactive Remediation/winget app update - automated/procative-remediation-creation.ps1 index a2f1238..27dbce7 100644 --- a/Proactive Remediation/winget app update - automated/procative-remediation-creation.ps1 +++ b/Proactive Remediation/winget app update - automated/procative-remediation-creation.ps1 @@ -79,7 +79,7 @@ $app_2upgrade = "WINGETPROGRAMID" $Winget = Get-ChildItem -Path (Join-Path -Path (Join-Path -Path $env:ProgramFiles -ChildPath "WindowsApps") -ChildPath "Microsoft.DesktopAppInstaller*_x64*\winget.exe") -if ($(&$winget upgrade) -like "* $app_2upgrade *") { +if ($(&$winget upgrade --accept-source-agreements) -like "* $app_2upgrade *") { Write-Host "Upgrade available for: $app_2upgrade" exit 1 # upgrade available, remediation needed } @@ -212,5 +212,5 @@ $AADGroupID = (Get-AzureADGroup -All $true | where-object DisplayName -eq $PAR_A Write-Host "Complete" -ForegroundColor Green }else{ - Write-Host "Group $PAR_AADGroup not found, PAR createt but not assigned" -ForegroundColor Yellow + Write-Host "Group $PAR_AADGroup not found, PAR created but not assigned" -ForegroundColor Yellow }