From 74242a46873a7eed571fd47f0ae68869614b94d7 Mon Sep 17 00:00:00 2001 From: ilia-shipitsin <125650415+ilia-shipitsin@users.noreply.github.com> Date: Thu, 28 Sep 2023 10:03:09 +0200 Subject: [PATCH] [windows] disable TSVNCache.exe (#8374) TortoiseSVN scans all drives for SVN repos. it eats disk IO, let us add registry setting which disables that activity --- images/win/scripts/Installers/Warmup-User.ps1 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/images/win/scripts/Installers/Warmup-User.ps1 b/images/win/scripts/Installers/Warmup-User.ps1 index 19dc41265..3ffcbb808 100644 --- a/images/win/scripts/Installers/Warmup-User.ps1 +++ b/images/win/scripts/Installers/Warmup-User.ps1 @@ -19,7 +19,15 @@ Copy-Item ${env:USERPROFILE}\AppData\Local\Microsoft\VisualStudio -Destination c reg.exe load HKLM\DEFAULT c:\users\default\ntuser.dat reg.exe copy HKCU\Software\Microsoft\VisualStudio HKLM\DEFAULT\Software\Microsoft\VisualStudio /s + +# disable TSVNCache.exe +$registryKeyPath = 'HKCU:\Software\TortoiseSVN' +if (-not(Test-Path -Path $registryKeyPath)) { + New-Item -Path $registryKeyPath -ItemType Directory -Force +} + +New-ItemProperty -Path $RegistryKeyPath -Name CacheType -PropertyType DWORD -Value 0 +reg.exe copy HKCU\Software\TortoiseSVN HKLM\DEFAULT\Software\TortoiseSVN /s + reg.exe unload HKLM\DEFAULT - - -Write-Host "Warmup-User.ps1 - completed" \ No newline at end of file +Write-Host "Warmup-User.ps1 - completed"