Rebuilding a corrupted WMI Repository

net stop winmgmt
cd %systemroot%\system32\wbem 
rd /S /Q repository 
regsvr32 /s %systemroot%\system32\scecli.dll 
regsvr32 /s %systemroot%\system32\userenv.dll 
mofcomp cimwin32.mof 
mofcomp cimwin32.mfl 
mofcomp rsop.mof 
mofcomp rsop.mfl 
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s 
for /f %%s in ('dir /b *.mof') do mofcomp %%s 
for /f %%s in ('dir /b *.mfl') do mofcomp %%s 
echo DONE reboot 
More info

Force replication to all Domain Controllers in Powershell

Import-Module ActiveDirectory

$DCs = (Get-ADForest).Domains | %{ Get-ADDomainController -Filter * -Server $_ } | select HostName

foreach ($DC in $DCs)
repadmin /syncall $DC.HostName

How to read the Windowsupdate.log file


The following components can write to the Windowsupdate.log file:

  • AGENT– Windows Update agent
  • AU– Automatic Updates is performing this task
  • AUCLNT– Interaction by AU with the logged on user
  • CDM– Device Manager
  • CMPRESS– Compression agent
  • COMAPI– Windows Update API
  • DRIVER– Device driver information
  • DTASTOR– Handles database transactions
  • DWNLDMGR– Creates and monitors download jobs
  • EEHNDLER– Expression handler used to evaluate update applicability
  • HANDLER– Manages the update installers
  • MISC– General service information
  • OFFLSNC– Detect available updates when not connected to the network
  • PARSER– Parses expression information
  • PT– Synchronizes updates information to the local datastore
  • REPORT– Collects reporting information
  • SERVICE– Startup/Shutdown of the Automatic Updates service
  • SETUP– Installs new versions of the Windows Update client when available
  • SHUTDWN– Install at shutdown feature
  • WUREDIR– The Windows Update redirector files
  • WUWEB– The Windows Update ActiveX control

More information:

%d bloggers like this: