bat脚本实现禁用win10自动更新
@echo off
chcp 65001 >nul 2>nul
:: title BLOCK Win10AU!
mode con cols=80 lines=60
echo 禁用Windows10自动更新
echo 请先退出360等安全管家!
echo 请确认右键选择“以管理员身份运行”此脚本
echo.
:: echo 请按任意键继续,若需要取消,请按ctrl+c后确认... &pause>nul
echo ===============================================================================
echo 结束进程...
taskkill /im Windows10UpgraderApp.exe
del /f /q "%USERPROFILE%\Desktop\微软 Windows 10 易升.lnk"
del /f /q "%USERPROFILE%\Desktop\Windows 10 Update Assistant.lnk"
echo ===============================================================================
echo 添加防火墙规则中,请耐心等待...
netsh advfirewall firewall delete rule name="Block_Windows10UpgraderApp" >nul 2>nul
netsh advfirewall firewall add rule name="Block_Windows10UpgraderApp" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\Windows10UpgraderApp.exe" action=block >nul 2>nul
netsh advfirewall firewall delete rule name="Block_WinREBootApp32" >nul 2>nul
netsh advfirewall firewall add rule name="Block_WinREBootApp32" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp32.exe" action=block >nul 2>nul
netsh advfirewall firewall delete rule name="Block_WinREBootApp64" >nul 2>nul
netsh advfirewall firewall add rule name
bat脚本实现禁用win10自动更新
@echo off
chcp 65001 >nul 2>nul
:: title BLOCK Win10AU!
mode con cols=80 lines=60
echo 禁用Windows10自动更新
echo 请先退出360等安全管家!
echo 请确认右键选择“以管理员身份运行”此脚本
echo.
:: echo 请按任意键继续,若需要取消,请按ctrl+c后确认... &pause>nul
echo ===============================================================================
echo 结束进程...
taskkill /im Windows10UpgraderApp.exe
del /f /q "%USERPROFILE%\Desktop\微软 Windows 10 易升.lnk"
del /f /q "%USERPROFILE%\Desktop\Windows 10 Update Assistant.lnk"
echo ===============================================================================
echo 添加防火墙规则中,请耐心等待...
netsh advfirewall firewall delete rule name="Block_Windows10UpgraderApp" >nul 2>nul
netsh advfirewall firewall add rule name="Block_Windows10UpgraderApp" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\Windows10UpgraderApp.exe" action=block >nul 2>nul
netsh advfirewall firewall delete rule name="Block_WinREBootApp32" >nul 2>nul
netsh advfirewall firewall add rule name="Block_WinREBootApp32" dir=in program="%SYSTEMDRIVE%\Windows10Upgrade\WinREBootApp32.exe" action=block >nul 2>nul
netsh advfirewall firewall delete rule name="Block_WinREBootApp64" >nul 2>nul
netsh advfirewall firewall add rule name