From 391787a0a619a407a433368073bf8da46b0c1064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Nyffenegger?= Date: Wed, 6 May 2026 15:54:07 +0200 Subject: [PATCH] Improve installation performance As per https://github.com/microsoft/Windows-Sandbox/issues/68#issuecomment-2684473932, the installation performance can be improved by executing Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CI\Policy" -Name "VerifiedAndReputablePolicyState" -Value "0" CiTool.exe -r --- bootstrap.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bootstrap.ps1 b/bootstrap.ps1 index b43b6f8..c483e8e 100644 --- a/bootstrap.ps1 +++ b/bootstrap.ps1 @@ -115,6 +115,10 @@ Function Test-WinVersion([String]$MatchString) { Write-Host 'Applying tweaks...' -ForegroundColor Blue +# https://github.com/microsoft/Windows-Sandbox/issues/68#issuecomment-2684473932 +Set-RegistryValue -Path "HKLM:\SYSTEM\CurrentControlSet\Control\CI\Policy" -Name 'VerifiedAndReputablePolicyState' -Value 0 -Type DWord +$null = CiTool.exe -r --json + # Performance # Set-RegistryValue -Path 'HKCU:\Control Panel\Desktop' -Name 'DragFullWindows' -Value 0 -Type String Set-RegistryValue -Path 'HKCU:\Control Panel\Desktop' -Name 'MenuShowDelay' -Value 200 -Type String