đụ mẹ vào chat gpt kêu viết file .bat chặn update windows 10 ltsc. Nhớ tham khảo các file khác đang lưu hành trên internet.
Viết vậy để nó có tự bịa thì nó phải thực hiện dòng 2 ít bịa lại
@echo off
:: Kiểm tra quyền admin
openfiles >nul 2>&1
if %errorlevel% neq 0 (
echo Please run this script as Administrator.
pause
exit /b 1
)
echo Stopping and disabling Windows Update related services...
sc stop wuauserv
sc config wuauserv start= disabled
sc stop bits
sc config bits start= disabled
sc stop dosvc
sc config dosvc start= disabled
sc stop UsoSvc
sc config UsoSvc start= disabled
timeout /t 2 /nobreak >nul
echo Disabling common Windows Update scheduled tasks via PowerShell...
powershell -Command "Get-ScheduledTask -TaskPath '\Microsoft\Windows\WindowsUpdate\' -ErrorAction SilentlyContinue | Disable-ScheduledTask -ErrorAction SilentlyContinue; Get-ScheduledTask -TaskPath '\Microsoft\Windows\UpdateOrchestrator\' -ErrorAction SilentlyContinue | Disable-ScheduledTask -ErrorAction SilentlyContinue"
echo (Optional) Adding hosts entries to block update domains. Uncomment next section if you want it.
:: --- WARNING: editing hosts may be detected/blocked by Defender and may break other services.
:: echo 127.0.0.1 windowsupdate.microsoft.com >> %windir%\System32\drivers\etc\hosts
:: echo 127.0.0.1 update.microsoft.com >> %windir%\System32\drivers\etc\hosts
Pause & disable Windows updates for any duration. Remove Recall / Copilot. Debloat / privacy / telemetry tools. Supports Windows 10 and 11. - Aetherinox/pause-windows-updates