Block Windows 10 Batch Script

Windows 10 Installation verhindern

Mit diesem Skript stoppen wir die Installation von Windows 10.

@Echo Off
Title Block Windows 10
cd %systemroot%\system32
call :IsAdmin

Reg.exe add “HKLM\SOFTWARE\Policies\Microsoft\Windows\GWX” /v “DisableGWX” /t REG_DWORD /d “1” /f
Reg.exe add “HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate” /v “DisableOSUpgrade” /t REG_DWORD /d “1” /f
Reg.exe add “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade” /v “AllowOSUpgrade” /t REG_DWORD /d “0” /f
Reg.exe add “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\OSUpgrade” /v “ReservationsAllowed” /t REG_DWORD /d “0” /f
Exit

:IsAdmin
Reg.exe query “HKU\S-1-5-19\Environment”
If Not %ERRORLEVEL% EQU 0 (
Cls & Echo Administrative Rechte sind erforderlich …
Pause & Exit
)
Cls
goto:eof

Block Windows 10

Windows Explorer Separate Process Batch Script