Win7移除升級WIN10提醒方式

把以下剪貼成BAT檔,用系統管理員權限執行即可

::刪除通知
taskkill /f /im GWX.exe
taskkill /f /im GWXUX.exe
cd/d C:\Windows\System32
takeown /f GWX
cacls GWX /e /g everyone:f
rd/q/s GWX
::移除更新
WUSA /UNINSTALL /KB:2952664 /quiet /norestart
WUSA /UNINSTALL /KB:2990214 /quiet /norestart
WUSA /UNINSTALL /KB:3021917 /quiet /norestart
WUSA /UNINSTALL /KB:3035583 /quiet /norestart
WUSA /UNINSTALL /KB:3068708 /quiet /norestart
WUSA /UNINSTALL /KB:3075249 /quiet /norestart
WUSA /UNINSTALL /KB:3080149 /quiet /norestart
WUSA /UNINSTALL /KB:3112343 /quiet /norestart
WUSA /UNINSTALL /KB:3118401 /quiet /norestart
WUSA /UNINSTALL /KB:3121255 /quiet /norestart
WUSA /UNINSTALL /KB:3123862 /quiet /norestart
WUSA /UNINSTALL /KB:3135445 /quiet /norestart

::變更擁有者
takeown /F C:\$Windows.~BT\* /R /A
::取得完全控制權限
icacls C:\$Windows.~BT\*.* /T /grant administrators:F
::移除WIN10下載更新擋
rmdir /S /Q C:\$Windows.~BT\

@echo off
echo 正在清除系統垃圾檔案中,請稍候……
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q “%userprofile%\Local Settings\Temporary Internet Files\*.*”
del /f /s /q “%userprofile%\Local Settings\Temp\*.*”
del /f /s /q “%userprofile%\recent\*.*”
echo 清除系統垃圾檔案完成!!
echo. & pause