千家信息网

wsus脚本解决客户端因为SID无法发现问题

发表于:2024-11-17 作者:千家信息网编辑
千家信息网最后更新 2024年11月17日,@ECHO OFF> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00>>"%Temp%.\DefOpen.reg" EC
千家信息网最后更新 2024年11月17日wsus脚本解决客户端因为SID无法发现问题

@ECHO OFF

> "%Temp%.\DefOpen.reg" ECHO Windows Registry Editor Version 5.00

>>"%Temp%.\DefOpen.reg" ECHO.

start cmd /c "net stop wuauserv"

>>"%Temp%.\DefOpen.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate]

>>"%Temp%.\DefOpen.reg" ECHO "PingID"=-

>>"%Temp%.\DefOpen.reg" ECHO "AccountDomainSid"=-

>>"%Temp%.\DefOpen.reg" ECHO "SusClientId"=-

start cmd /c "net start wuauserv"

start cmd /c "wuauclt.exe resetauthorization"

start cmd /c "wuauclt.exe detectnow"

start cmd /c "net start wuauserv"

>>"%Temp%.\DefOpen.reg" ECHO.

>>"%Temp%.\DefOpen.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]

>>"%Temp%.\DefOpen.reg" ECHO "WUServer"="http://66.76.32.138:8530"

>>"%Temp%.\DefOpen.reg" ECHO "WUStatusServer"="http://66.76.32.138:8530"

>>"%Temp%.\DefOpen.reg" ECHO.

>>"%Temp%.\DefOpen.reg" ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]

>>"%Temp%.\DefOpen.reg" ECHO "NoAutoUpdate"=dword:00000000

>>"%Temp%.\DefOpen.reg" ECHO "AUOptions"=dword:00000004

>>"%Temp%.\DefOpen.reg" ECHO "ScheduledInstallDay"=dword:00000000

>>"%Temp%.\DefOpen.reg" ECHO "ScheduledInstallTime"=dword:0000000c

>>"%Temp%.\DefOpen.reg" ECHO "UseWUServer"=dword:00000001

>>"%Temp%.\DefOpen.reg" ECHO.

>>"%Temp%.\DefOpen.reg" ECHO.

>>"%Temp%.\DefOpen.reg" ECHO.

START /WAIT REGEDIT /S "%Temp%.\DefOpen.reg"

DEL "%Temp%.\DefOpen.reg"


0