anchor.diff:  :::::::::::::::::::::
   :: PREP AND CHECKS ::
   :::::::::::::::::::::
  -set SCRIPT_VERSION=1.0.0
  -set SCRIPT_UPDATED=2015-09-28
  +set SCRIPT_VERSION=1.0.1
  +set SCRIPT_UPDATED=2018-07-04
   
   @echo OFF
   REM Test and attempt repair of WMI
  
positive.code: :: Requirements:  Broken WMI configuration
  :: Author:        Originally taken from http://craighassan.com/fix-wmi-batch-file/
  ::                Modified by reddit.com/user/vocatus ( vocatus.gate at gmail ) // PGP key: 0x07d1490f82a211a2
  :: Version:       1.0.0 + Initial write
  SETLOCAL
  
  
  
negative.code: set ATTEMPT=3
  set LERR=3001
  echo 3. REBUILDING WMI REPOSITORY... ATTEMPT:%ATTEMPT%...
  for /f "tokens=2 delims= " %%a in ('sc enumdepend winmgmt^| findstr -i "SERVICE_NAME"') do echo 3. REBUILDING WMI REPOSITORY... Stopping "%%a"...& net stop "%%a" /y> nul
  echo 3. REBUILDING WMI REPOSITORY... Stopping BITS& net stop BITS /y> nul& sc stop BITS> nul
  ping 127.0.0.1 -n 5
  echo 3. REBUILDING WMI REPOSITORY... Stopping WinMgmt& net stop winmgmt /y> nul& sc stop winmgmt> nul
  