[心得] kill_win10_update.bat

作者: enthos (影斯作業系統)   2019-01-10 14:40:01
參考外國論壇文章修改而成,用有管理者權限的 cmd.exe 執行
k12.bat
@echo off
:Loop
taskkill /im CloudNotifications.exe /f 2>nul
taskkill /im Windows10UpgraderApp.exe /f 2>nul
taskkill /im SetupHost.exe /f 2>nul
taskkill /im WindowsUpdateBox.exe /f 2>nul
taskkill /im DropboxUpdate.exe /f 2>nul
taskkill /im GoogleUpdate.exe /f 2>nul
taskkill /im Dropbox.exe /f 2>nul
taskkill /im MusNotification.exe /f 2>nul
taskkill /im MusNotificationUx.exe /f 2>nul
net stop wuauserv 2>nul
net stop bits 2>nul
PING localhost -n 10 >nul
goto Loop
xskype.bat
taskkill /F /IM SkypeHost.exe
move "C:\Program Files\WindowsApps\Microsoft.Messaging_2.15.20002.0_x86__8wekyb3d8bbwe\SkypeHost.exe" "C:\Program Files\WindowsApps\Microsoft.Messaging_2.15.20002.0_x86__8wekyb3d8bbwe\SkypeHost.exe.old"
xskype10.bat
taskkill /F /IM SkypeHost.exe
move "C:\Program Files\WindowsApps\Microsoft.Messaging_2.15.20002.0_x86__8wekyb3d8bbwe\SkypeHost.exe" "C:\Program Files\WindowsApps\Microsoft.Messaging_2.15.20002.0_x86__8wekyb3d8bbwe\SkypeHost.exe.old"
takeown /f C:\Program Files\WindowsApps\Microsoft.Messaging_1.10.22012.0_x86__8wekyb3d8bbwe\SkypeHost.exe /D y
icals C:\Program Files\WindowsApps\Microsoft.Messaging_1.10.22012.0_x86__8wekyb3d8bbwe\SkypeHost.exe /grant Administrator:(D,WDAC)
move "C:\Program Files\WindowsApps\Microsoft.Messaging_1.10.22012.0_x86__8wekyb3d8bbwe\SkypeHost.exe" "C:\Program Files\WindowsApps\Microsoft.Messaging_1.10.22012.0_x86__8wekyb3d8bbwe\SkypeHost.exe.old"
xskype2.bat
taskkill /F /IM SkypeHost.exe
move "C:\Program Files\WindowsApps\Microsoft.SkypeApp_11.19.856.0_x64__kzf8qxf38zg5c\SkypeHost.exe" "C:\Program Files\WindowsApps\Microsoft.SkypeApp_11.19.856.0_x64__kzf8qxf38zg5c\SkypeHost.exe.old"
xskype3.bat
taskkill /F /IM SkypeHost.exe
move "C:\Program Files\WindowsApps\Microsoft.SkypeApp_11.15.597.0_x64__kzf8qxf38zg5c\SkypeHost.exe" "C:\Program Files\WindowsApps\Microsoft.SkypeApp_11.15.597.0_x64__kzf8qxf38zg5c\SkypeHost.exe.old"
xsearch.bat
REM *** Remove Cortana ***
REM Currently MS doesn't allow to uninstall Cortana using the above step claiming it's a required OS component (hah!)
REM We will have to rename the Cortana App folder (add ".bak" to its name), but this can be done only if Cortana is not running.
REM The issue is that when Cortana process (SearchUI) is killed, it respawns very quickly
REM So the following code needs to be quick (and it is) so we can manage to rename the folder
taskkill /F /IM SearchUI.exe
move "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy" "%windir%\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy.bak"
作者: ltyintw (菈米雅嘶嘶)   2019-01-11 00:36:00
只看前幾行就真心覺得.... 用個win10那麼搞肛,還要牽拖google跟dropbox。真的不考慮改用各大linux分支嗎?
作者: guteres (走出自己的路)   2019-01-12 13:39:00
linux不適合一般個人用戶
作者: DINJIAPC (鼎家)   2019-01-12 18:43:00
不如說改裝安卓算了
作者: casko (^(oo)^)   2019-01-13 02:39:00
我筆電黑蘋果+win10 要遊戲看片就插usb跑batocera-linuxbatocera可以跑ps2'dc'gc'snes'mame各種模擬器還內建kodi
作者: dou0228 (7777)   2019-01-19 10:11:00
對熟悉 linux cmd 的人來說 win10 不好用

Links booklink

Contact Us: admin [ a t ] ucptt.com