anchor.diff:  :: 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
  +:: Version:       1.0.1 ! Fix "smart quotes" incorrectly being used on some commands
  +::                1.0.0 + Initial write
   SETLOCAL
   
   
  
positive.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
  
negative.code: echo 3. REBUILDING WMI REPOSITORY... Starting WinMgmt& sc start winmgmt> nul
  ping 127.0.0.1 -n 5
  echo 3. REBUILDING WMI REPOSITORY... Starting BITS& sc start BITS> nul
  for /f "tokens=2 delims= " %%a in ('sc enumdepend winmgmt^| findstr -i "SERVICE_NAME"') do echo 3. REBUILDING WMI REPOSITORY... Starting "%%a"...& sc start "%%a"> nul
  timeout /t 10
  echo 3. REBUILDING WMI REPOSITORY... 1. Verifying...& %windir%\system32\wbem\winmgmt /verifyrepository
  IF %ERRORLEVEL%==0 GOTO SKIPRESET
  