CleanUP WSUS Script

net stop wuauserv
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f
net start wuauserv
wuauclt /resetauthorization /detectnow

时间: 2024-11-10 18:12:47

CleanUP WSUS Script的相关文章

使用SQLCMD清理WSUS 数据库。

WSUS 运行一段时间以后,会累积一些过期的补丁或者电脑信息,长期不进行清理,则可能造成数据库越来越大,然后WSUS Server越来越慢,客户端无法通过WSUS 安装补丁等情况. WSUS 提供了一个Server Cleanup Wizard,可以帮助我们清理WSUS .如果之前长期没有进行清理,数据太大或者数据库存在一些问题,则可能会在清理的过程中碰到数据库错误,无法无法清理工作. 因为WSUS使用的是Internal SQL Databse,所以,如果出现这种情况,可以使用SQLCMD工具

[转]Inside the Storage Engine: Ghost cleanup in depth

Inside the Storage Engine: Ghost cleanup in depth By: Paul Randal Over the years I was in the Storage Engine team I saw a lot of concern on the various forums about the ghost cleanup task. There have been a few bugs with it in previous versions  (see

dojo Provider(script、xhr、iframe)源码解析

总体结构 dojo/request/script.dojo/request/xhr.dojo/request/iframe这三者是dojo提供的provider.dojo将内部的所有provider构建在Deferred基础上形成异步链式模型,utils.deferred函数向3个provider提供统一接口来规范其行为.数据请求在各个provider的发送过程几乎一致: 解析options参数util.parseArgs 创建dfd对象,该对象控制着整个数据接收.处理.传递的过程 //Make

清理WSUS磁盘空间

一.可以定期在WSUS控制台中运行Server Cleanup Wizard,进行手动清理: 但是利用这种方法会有两个问题: 1.需要人工手动运行: 2.如果长期没有运行,由于数据量过大可能导致持续时间过长,或者一直无法成功清理的情况: 建议若使用以上这个方法,最少每月要进行一次. 二.利用PS进行计划自动清理: 该方法适用于WindowsServer2012之后的系统,通过PowerShell的Invoke-WsusServerCleanup命令进行清理. Invoke-WsusServerC

Maintenance Plan Usage2:Task Usage (Cleanup)

Maintenance Plan 共有两个Cleanup的Task,Maintenance Cleanup Task 和 History Cleanup Task,这两个Task都能根据File Age 和Info Age 来删除早于一定时间的files. 1,Maintenance Cleanup Task 用于删除Maintenance Plan产生的Report files 和 backup files. Remove old files related to maintenance pl

.NET 动态脚本语言Script.NET 入门指南 Quick Start

Script.NET是一种动态的脚本语言,它使得程序可扩展,可定制,和维护性好.和Office系列的VB Script相似,可以在应用中嵌入大量的代码块,以便在运行时才执行这些代码. Script.NET的设计理念是:简单(simplicity),有效率(efficiency),容易上手(intuitive).先通过例子,来做一个基本的了解. using System; using System.Diagnostics; using System.IO; using ScriptNET; usi

利用powershell script每个月定期从microsoft download网站上抓补丁

This artical will be published in English also: http://www.cnblogs.com/LarryAtCNBlog/p/4026695.html 本人所在的公司对于安全性要求较高,除了平时各种内网加密外网firewall之外,对于server所使用的OS也要求更新到最新的security级别的补丁. 但是样本数量一多就总有些是打不上补丁的,这可能由于各种各样如update配置错误,SCCM/WSUS抽风,加上第3方扫描补丁软件的2X机制和se

Use powershell script to download windows patches monthly

My company concerns security, request us to deploy the newest patches on our servers in time, even we have firewall/encryption internally. With the number of servers increasing, there must be some servers can't be patched as expected, probably caused

InnoDB Infrastructure Cleanup

Here is a more complete answer with regard to InnoDB. It is a bit of a lengthy process, but can be worth the effort. Keep in mind that /var/lib/mysql/ibdata1 is the busiest file in the InnoDB infrastructure. It normally houses six types of informatio