zoukankan      html  css  js  c++  java
  • 加入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

  • 相关阅读:
    CSAPP阅读笔记-栈帧-来自第三章3.7的笔记-P164-P176
    CSAPP阅读笔记-汇编语言初探(控制类指令)-来自第三章3.6的笔记-P135-P163
    CSAPP阅读笔记-汇编语言初探(算术和逻辑操作类指令)-来自第三章3.5的笔记-P128-P135
    CSAPP阅读笔记-汇编语言初探(数据传送类指令)-来自第三章3.2-3.3的笔记-P115-P128
    CSAPP阅读笔记-gcc常用参数初探-来自第三章3.2的笔记-P113
    CSAPP阅读笔记-32位64位的区别--来自第三章引言的笔记--P110
    写在前面
    VS2010禁用IntelliSense提示
    VS2012编译64位程序
    VS2012错误之:warning LNK4075: 忽略“/EDITANDCONTINUE”(由于“/SAFESEH”规范)
  • 原文地址:https://www.cnblogs.com/torn/p/11684096.html
Copyright © 2011-2022 走看看