Tools/enable or disable win10 update/dont offer driver.bat

25 lines
526 B
Batchfile
Raw Normal View History

2021-02-21 20:00:16 +08:00
@echo off
::set color
color DE
echo Checking administrator authority...
net session >nul 2>&1
if %errorLevel% == 0 (
goto continue
) else (
echo,
echo Please run me as an administrator!
echo Press any key to exit...
pause > nul
exit
)
:continue
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\DriverSearching" /v "SearchOrderConfig" /t REG_DWORD /d "0" /f
echo You will not receive all driver updates from Microsoft any more!
echo Press any key to exit
pause > nul
exit