From b8833f2897f57ea185b1e70eb83686c5af3df45b Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 16 Mar 2026 09:36:41 +0100 Subject: [PATCH] feat: disable Windows Update permanently (services + registry policy) Stops and disables wuauserv, UsoSvc, and BITS services. Sets NoAutoUpdate and AUOptions registry policies to prevent automatic and manual update checks. Co-Authored-By: Claude Opus 4.6 (1M context) --- VServerSetup.ps1 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/VServerSetup.ps1 b/VServerSetup.ps1 index 5a417bc..392cc99 100644 --- a/VServerSetup.ps1 +++ b/VServerSetup.ps1 @@ -452,6 +452,28 @@ Set-ItemProperty -Path $desktopRegPath -Name "IconSize" -Value 32 -Type DWord -F Set-ItemProperty -Path $desktopRegPath -Name "Mode" -Value 1 -Type DWord -Force Set-ItemProperty -Path $desktopRegPath -Name "LogicalViewMode" -Value 3 -Type DWord -Force +# Windows Update dauerhaft deaktivieren +Write-Host " Windows Update deaktivieren..." -ForegroundColor Gray +# Update-Service stoppen und auf "Deaktiviert" setzen +Stop-Service -Name "wuauserv" -Force -ErrorAction SilentlyContinue +Set-Service -Name "wuauserv" -StartupType Disabled -ErrorAction SilentlyContinue +# Orchestrator-Service (plant Updates im Hintergrund) +Stop-Service -Name "UsoSvc" -Force -ErrorAction SilentlyContinue +Set-Service -Name "UsoSvc" -StartupType Disabled -ErrorAction SilentlyContinue +# BITS (Background Intelligent Transfer Service - laedt Updates runter) +Stop-Service -Name "BITS" -Force -ErrorAction SilentlyContinue +Set-Service -Name "BITS" -StartupType Disabled -ErrorAction SilentlyContinue +# Registry: Automatische Updates komplett deaktivieren +$wuRegPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" +if (-not (Test-Path $wuRegPath)) { + New-Item -Path $wuRegPath -Force | Out-Null +} +# NoAutoUpdate = 1 → Keine automatischen Updates +Set-ItemProperty -Path $wuRegPath -Name "NoAutoUpdate" -Value 1 -Type DWord -Force +# AUOptions = 1 → Nie nach Updates suchen +Set-ItemProperty -Path $wuRegPath -Name "AUOptions" -Value 1 -Type DWord -Force +Write-Host " Windows Update deaktiviert!" -ForegroundColor Green + # Explorer neu starten damit alle Einstellungen sofort wirksam werden Write-Host " Explorer wird neu gestartet..." -ForegroundColor Gray Stop-Process -Name "explorer" -Force -ErrorAction SilentlyContinue