eliminato Delivery Optimization

This commit is contained in:
dado
2025-10-18 14:58:36 +02:00
parent 293c025e62
commit 5462c96a01

View File

@@ -667,21 +667,6 @@ if (!(Test-Path $WindowsUpdateRegistryPath)) {
Set-ItemProperty -Path $WindowsUpdateRegistryPath -Name "NoAutoRebootWithLoggedOnUsers" -Value 1 -Type DWORD | Out-Null
Write-Host ""
####################################################################################################################################
Write-Host -ForegroundColor Yellow ">>> Turn Off Windows Update Delivery Optimization <<<"
$RegistryPaths = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\DeliveryOptimization\Settings"
# Check if the path exists
if (-not (Test-Path $RegistryPaths)) {
# Create the path if it doesn't exist
New-Item -Path $RegistryPaths -Force | Out-Null
}
Set-ItemProperty -Path $RegistryPaths -Name "DownloadMode" -Value 0 -Force | Out-Null
####################################################################################################################################
# Restart File Explorer to apply the changes