mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-09-12 17:34:45 +08:00
Add files via upload
This commit is contained in:
parent
b97e6fdd1a
commit
e22d1d4a8f
2 changed files with 32 additions and 0 deletions
BIN
enable or disable win10 update/disable win10 update.reg
Normal file
BIN
enable or disable win10 update/disable win10 update.reg
Normal file
Binary file not shown.
32
enable or disable win10 update/enable win10 update.bat
Normal file
32
enable or disable win10 update/enable win10 update.bat
Normal file
|
@ -0,0 +1,32 @@
|
|||
@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 query "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /ve 2>nul | findstr "WindowsUpdate" > nul
|
||||
|
||||
if %errorLevel% == 0 (
|
||||
reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate" /f
|
||||
echo The update of your system has been enabled.
|
||||
echo Please restart your system!
|
||||
) else (
|
||||
echo The update of your system has been enabled!
|
||||
)
|
||||
|
||||
echo Press any key to exit
|
||||
pause > nul
|
||||
exit
|
Loading…
Add table
Reference in a new issue