Tools/enable or disable win10 update/dont offer driver.bat
2021-02-21 21:00:16 +09:00

25 lines
No EOL
526 B
Batchfile

@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