@echo?off?&?Configuration?Windows?Update?Group Policy?Por?Yimeng Qinyao
if?exist?"%SystemRoot%\SysWOW64"?set? 64
set?Key=HKCU\Software\Microsoft\Windows\CurrentVersion\Group?Policy?Objects\{65ED61B4-910E-4D27-A2D2-EAEBF77AC088}Machine\Software\Policies\Microsoft\Windows \WindowsUpdate
llamar:Configuración
set?Key=HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate
llamar:Configuración
if ?"%Sys%"=="64"?(
set?Key=HKLM\SOFTWARE\Wow6432Node\Policies\Microsoft\Windows\WindowsUpdate
llamada:Configuración
)
echo,?&?echo?Si hay un mensaje de error arriba, ejecute el script como administrador.
Después de ejecutar echo,?&?echo?, reinicie la computadora para que la configuración relevante pueda surtir efecto.
ping?127.0.0.1?-n?"6">nul
salir
:Configuración
reg?add?" %Key%"?/v?"WUServer"?/t?REG_SZ?/d?"http://192.168.100.10:8530"?/f
reg?add?"%Key%" ?/v?"WUStatusServer"?/t?REG_SZ?/d?"http://192.168.100.10:8530"?/f
reg?add?"%Key%\AU"?/ v?"UseWUServer"?/t?REG_DWORD?/d?"1"?/f
reg?add?"%Key%\AU"?/v?"NoAutoRebootWithLoggedOnUsers"?/t?REG_DWORD ?/d?"1"?/f
reg?add?"%Key%\AU"?/v?"DetectionFrequencyEnabled"?/t?REG_DWORD?/d?"1"?/f
reg?add?"%Key%\AU"?/v?"DetectionFrequency"?/t?REG_DWORD?/d?"1"?/f
reg?add ?"%Key%\AU"?/v?"NoAutoUpdate"?/t?REG_DWORD?/d?"0"?/f
reg?add?"%Key%\AU"?/ v?"AUOptions"?/t?REG_DWORD?/d?"4"?/f
reg?add?"%Key%\AU"?/v?"ScheduledInstallDay"?/t?REG_DWORD ?/d?"0"?/f
reg?add?"%Key%\AU"?/v?"ScheduledInstallTime"?/t?REG_DWORD?/d?"c"?/f
ir a?:eof