mirror of
https://github.com/leitbogioro/Tools.git
synced 2024-11-16 22:24:39 +08:00
25 lines
No EOL
526 B
Batchfile
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 |