参考外国论坛文章修改而成,用有管理者权限的 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"