From f1276acf5c5cfcccffb50a04a58a8974d2d2121e Mon Sep 17 00:00:00 2001 From: Heikki Halmet Date: Wed, 16 Oct 2019 14:53:42 +0300 Subject: Provisioning: Add MSVC 2019 and upgrade MSVC 2017 to the latest version Under coin/pre-provisioning can be found information what have been provisioned to tier1 image Visual studios are updated to versions: MSVC 2019: version 16.3.1 MSVC 2017: version 15.9.16 Task-number: QTQAINFRA-2875 Change-Id: I3a9748296dcf088bb312dec8f78bdc59dfb281d1 Reviewed-by: Jani Heikkinen --- .../windows/disable-windows-update-medic.ps1 | 25 ---------------------- 1 file changed, 25 deletions(-) delete mode 100644 coin/provisioning/common/windows/disable-windows-update-medic.ps1 (limited to 'coin/provisioning/common/windows/disable-windows-update-medic.ps1') diff --git a/coin/provisioning/common/windows/disable-windows-update-medic.ps1 b/coin/provisioning/common/windows/disable-windows-update-medic.ps1 deleted file mode 100644 index 6accbd3b..00000000 --- a/coin/provisioning/common/windows/disable-windows-update-medic.ps1 +++ /dev/null @@ -1,25 +0,0 @@ -# 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\WaaSMedicSvc.dll" - -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") -- cgit v1.2.3