Compare commits
2 Commits
a0fe8ff52a
...
5462c96a01
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5462c96a01 | ||
|
|
293c025e62 |
@@ -385,6 +385,8 @@ foreach ($RegistryPath in $RegistryPaths) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Write-Host ""
|
||||||
|
|
||||||
####################################################################################################################################
|
####################################################################################################################################
|
||||||
|
|
||||||
Write-Host -ForegroundColor Yellow ">>> Disable Lets finish setting up your device <<<"
|
Write-Host -ForegroundColor Yellow ">>> Disable Lets finish setting up your device <<<"
|
||||||
@@ -667,19 +669,6 @@ Set-ItemProperty -Path $WindowsUpdateRegistryPath -Name "NoAutoRebootWithLoggedO
|
|||||||
|
|
||||||
####################################################################################################################################
|
####################################################################################################################################
|
||||||
|
|
||||||
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
|
# Restart File Explorer to apply the changes
|
||||||
taskkill /f /im explorer.exe | Out-Null
|
taskkill /f /im explorer.exe | Out-Null
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user