-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrevert.bat
More file actions
24 lines (20 loc) · 927 Bytes
/
Copy pathrevert.bat
File metadata and controls
24 lines (20 loc) · 927 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
title Revert Windows Optimizer Changes
color 0C
echo [*] Re-enabling Windows Update Services...
sc config wuauserv start= auto
sc start wuauserv
sc config UsoSvc start= demand
sc start UsoSvc
sc config bits start= delayed-auto
sc start bits
echo [*] Removing registry keys...
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /f >nul
reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /f >nul
reg delete "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" /v ToastEnabled /f >nul
echo [*] Re-enabling scheduled tasks...
schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Scheduled Start" /Enable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\sih" /Enable >nul 2>&1
schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\sihboot" /Enable >nul 2>&1
echo [✓] System update settings restored to default.
pause