Posts

Showing posts with the label WSUS

Event ID 7040 - Windows Update services in stop state.

Event ID 7040 - Windows Update services in stop state. Search in system..

WSUS WUAUServ service in it’s own svchost.exe process

Running the WUAUServ service in it’s own svchost.exe process net stop wuauserv sc config wuauserv type= own net start wuauser

WSUS RESET CMD

REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientId /f REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v SusClientIdValidation /f net stop wuauserv move %windir%\windowsupdate.log %windir%\windowsupdate.old.log move %windir%\SoftwareDistribution %windir%\SoftwareDistributionold regsvr32 /s atl.dll regsvr32 /s wucltui.dll regsvr32 /s wups.dll regsvr32 /s wuaueng.dll regsvr32 /s wuapi.dll regsvr32 /s msxml3.dll regsvr32 /s mssip32.dll regsvr32 /s initpki.dll regsvr32 /s softpub.dll net start wuauserv wuauclt /resetauthorization /detectnow

WSUS uninstall the specified patches in server

Script start here: Enter KB no and run the below CMD. wusa.exe /quiet /uninstall /kb:------ /quiet /norestart /promptrestart

WSUS REGISTRY KEY DETAILS

WSUS REGISTRY Registry keys for configuring Automatic Updates HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer HKEY_LOCAL_MACHINE\SYSTEM\Internet Communication Management\Internet Communication HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\WindowsUpdate HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate\AU HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WindowsUpdate. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer. HKEY_LOCAL_MACHINE\SYSTEM\Internet Communication Management\Internet Communication. REF:  https://msdn.microsoft.com/en-us/library/dd939844(v=ws.10).aspx

WSUS MSI Installer and Failed to connect to server Event

WSUS MSI Installer and Failed to connect to server Event net stop msiserver msiexec /unreg msiexec /regserver net start msiserver

WSUS simple reset cmd

WSUS simple reset cmd net stop wuauserv net stop cryptSvc net stop bits net stop msiserver ren C:\Windows\SoftwareDistribution SoftwareDistribution.old ren C:\Windows\System32\catroot2 catroot2.old net start wuauserv net start cryptSvc net start bits net start msiserver pause

WSUS GET REMOTE SYSTEM INSTALLED PATCHES

GET REMOTE SYSTEM INSTALLED PATCHES <# SRIPT STARTS HERE #> Function exportqfe { BEGIN {} PROCESS { $server = "$_" if ($_ -ne "") { Write-host "Exporting installed hotfix details of $server, pasting output in c:\Audit" $QFE = Get-hotfix -computername $server | select-object -property Description,HotFixID,InstalledBy,InstalledOn | export-csv c:\$server.csv } } END {} } cls $ScriptPath = Split-Path $MyInvocation.MyCommand.Path $LogFile = $Scriptpath+"\Audit" Get-Content $Scriptpath"\computers.txt" | exportqfe ------------------------------------------------------------------------------------------- <# SRIPT STARTS HERE #> function Hotfixreport { $computers = Get-Content C:\computers.txt  $ErrorActionPreference = 'Stop'  ForEach ($computer in $computers) {   try     { Get-HotFix -cn $computer | Select-Object PSComputerName,HotFixID,Description,InstalledBy,InstalledOn | FT -AutoSize    ...