Reset di Windows Update con server Wsus
Vi è mai capitato che un client non scarica gli aggiornamenti di Windows Update da server Wsus?
Ogni tanto guardando i report del server WSUS capita di imbatterci in client che non hanno mai installato nessun aggiornamento e non abbiano intenzione di scaricare gli aggiornamenti anche forzando la ricerca con il comando wuauclt.exe /detectnow . Senza perdervi d’animo usate lo script qui sotto, copiate il testo e incollatelo in notepad, salvate il file con estensione .bat ed eseguitelo con i diritti di amministratore
rem Script pulizia degli update di Windows, rem quando non li scarica dal server Wsus rem Script generato da ITManiac.it echo Pulizia Windows Update con server Wsus @echo on net stop wuauserv /y net stop bits /y net stop cryptsvc /y del /f /q %windir%\WindowsUpdate.log del /f /s /q %windir%\SoftwareDistribution\*.* echo Registrazione dei componenti di Windows Update %windir%\system32\regsvr32.exe /s %windir%\system32\atl.dll %windir%\system32\regsvr32.exe /s %windir%\system32\jscript.dll %windir%\system32\regsvr32.exe /s %windir%\system32\msxml3.dll %windir%\system32\regsvr32.exe /s %windir%\system32\softpub.dll %windir%\system32\regsvr32.exe /s %windir%\system32\wuapi.dll %windir%\system32\regsvr32.exe /s %windir%\system32\wuaueng.dll %windir%\system32\regsvr32.exe /s %windir%\system32\wuaueng1.dll %windir%\system32\regsvr32.exe /s %windir%\system32\wucltui.dll %windir%\system32\regsvr32.exe /s %windir%\system32\wups.dll %windir%\system32\regsvr32.exe /s %windir%\system32\wups2.dll %windir%\system32\regsvr32.exe /s %windir%\system32\wuweb.dll 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 REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIdValidation /f net start bits /y net start wuauserv /y net start cryptsvc /y echo Riavvio ciclo di Windows Update wuauclt /resetauthorization /detectnow
Info: pulizia errori di Windows Update su client appartenenti ad un dominio con server WSUS, da XP in su sia 32 che 64 bit
Great article. I’m experiencing some of these issues as well..