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

  • 相关阅读:
    统计某个状态最新出现的连续次数
    debian 10 xface 安装输入法
    Temporary failure in name resolution
    Leetcode199二叉树的右视图(宽搜)
    Leetcode200岛屿数量(深搜)
    Leetcode130. 被围绕的区域(深搜)
    Leetcode116. 填充每个节点的下一个右侧节点指针(宽搜或深搜)
    Leetcode之二叉树展开为链表(深搜)
    Leetcode之路径总和II
    vue学习02-v-text
  • 原文地址:https://www.cnblogs.com/torn/p/11684096.html
Copyright © 2011-2022 走看看