mirror of
git://code.qt.io/qt/qt5.git
synced 2026-03-25 07:41:24 +08:00
Tier 1 image includes all configurations from pre-provisioning folder. E.g. these are pre-provisioned: Visual Studio 2015 version 14.0.25431.1 Update 3 Visual Studio 2019 + build tools version 16.11.5 Visual Studio 2022 + build tools version 17.0.0 preview 7.0 Visual Studio 2022 + build tools version 17.0.1 Task-number: QTQAINFRA-4512 Change-Id: Ieceff236a9c12f34dc772c89cb93ad99d38d7fe5 Reviewed-by: Toni Saario <toni.saario@qt.io>
26 lines
817 B
PowerShell
26 lines
817 B
PowerShell
# Windows Update Medic Service (WaaSMedicSvc)'PerformRemediation' helps recover update-related services to the supported configuration.
|
|
# WaasMedicSvc keeps re-starting Windows Update, even if it disabled manually.
|
|
# Even Admin user don't have privileged to disable PerformRemediation from Task Scheduler which means that WaaSMedicSvc.dll need's to be removed from the system
|
|
|
|
$limit = (Get-Date).AddMinutes(20)
|
|
$path = "C:\Windows\System32\WaaSMedicAgent.exe"
|
|
|
|
DO {
|
|
takeown /F $path
|
|
icacls $path /grant Administrators:f
|
|
Write-host "Deleting $path"
|
|
|
|
Try {
|
|
del $path
|
|
}
|
|
Catch [System.UnauthorizedAccessException] {
|
|
Write-host "Access to the path '$path' is denied."
|
|
Continue
|
|
}
|
|
|
|
if ((Get-Date) -gt $limit) {
|
|
exit 1
|
|
}
|
|
|
|
}while (Test-Path -Path "$path")
|