• 加入WSUS补丁服务器并下载补丁


    --------加入WSUS补丁服务器并下载补丁_不安装-------

    @echo off

    reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate /v AccountDomainSid /f
    reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate /v PingID /f
    reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate /v SusClientId /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdate /v WUServer /d "http://10.5.18.107:8530" /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdate /v WUStatusServer /d "http://10.5.18.107:8530" /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdate /v TargetGroupEnabled /t REG_DWORD /d 1 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v AUOptions /t REG_DWORD /d 3 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v NoAutoUpdate /t REG_DWORD /d 0 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v ScheduledInstallDay /t REG_DWORD /d 0 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v ScheduledInstallTime /t REG_DWORD /d 0 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v UseWUServer /t REG_DWORD /d 1 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v AutoInstallMinorUpdates /t REG_DWORD /d 1 /f
    gpupdate /force

    net stop wuauserv
    del %SystemRoot%SoftwareDistribution*.* /S /Q
    net start wuauserv
    wuauclt /resetauthorization /detectnow
    wuauclt /downloadnow
    wuauclt /reportnow

    --------加入WSUS补丁服务器并下载补丁_自动安装-------

    @echo off

    reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate /v AccountDomainSid /f
    reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate /v PingID /f
    reg delete HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate /v SusClientId /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdate /v WUServer /d "http://10.5.18.107:8530" /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdate /v WUStatusServer /d "http://10.5.18.107:8530" /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdate /v TargetGroupEnabled /t REG_DWORD /d 1 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v AUOptions /t REG_DWORD /d 4 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v NoAutoUpdate /t REG_DWORD /d 0 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v ScheduledInstallDay /t REG_DWORD /d 0 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v ScheduledInstallTime /t REG_DWORD /d 0 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v UseWUServer /t REG_DWORD /d 1 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f
    reg add HKLMSOFTWAREPoliciesMicrosoftwindowsWindowsUpdateAU /v AutoInstallMinorUpdates /t REG_DWORD /d 1 /f
    gpupdate /force

    net stop wuauserv
    del %SystemRoot%SoftwareDistribution*.* /S /Q
    net start wuauserv
    wuauclt /resetauthorization /detectnow
    wuauclt /downloadnow
    wuauclt /reportnow

  • 相关阅读:
    关于对象
    python *args **kwargs用法
    程序员的自我修养:链接、装载与库
    LInux高性能服务器编程:多线程编程
    Linux高性能服务器编程:多进程编程
    使用burpsuite进行手动sql注入
    selenium+webdriver 实现上传文件,方法有三种,
    burp下载
    初识burp suite
    jmeter函数助手_详情,(资源来源网络)
  • 原文地址:https://www.cnblogs.com/torn/p/11684096.html
Copyright © 2020-2023  润新知