Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.2 KiB

  1. @echo on
  2. @echo Please WAIT....
  3. @echo off
  4. REM QA_CHECK.CMD - Records the state of the branch DC before it leaves the factory.
  5. SETLOCAL ENABLEEXTENSIONS
  6. set QA=C:\QA_CHECK
  7. if NOT EXIST %QA% (md %QA%)
  8. REM run dcdiag
  9. @echo DCDIAG is running
  10. @echo off
  11. dcdiag > %QA%\dcdiag.txt
  12. REM For FRS
  13. @echo NTFRSUTL checks is running
  14. @echo off
  15. ntfrsutl ds > %QA%\ntfrs_ds.txt
  16. ntfrsutl sets > %QA%\ntfrs_sets.txt
  17. ntfrsutl inlog > %QA%\ntfrs_inlog.txt
  18. ntfrsutl outlog > %QA%\ntfrs_outlog.txt
  19. ntfrsutl version > %QA%\ntfrs_version.txt
  20. @echo REGDMP is running
  21. @echo off
  22. regdmp
  23. HKEY_LOCAL_MACHINE\system\currentcontrolset\services\NtFrs\Parameters > %QA%\ntfrs_reg.txt
  24. @echo SYSVOL check is running
  25. @echo off
  26. dir \\%COMPUTERNAME%\sysvol /s > %QA%\ntfrs_sysvol.txt
  27. REM scan the frs debug logs for errors.
  28. @echo FRS ERROR check is running
  29. @echo off
  30. findstr /i ":SO: error invalid fail abort warn" %windir%\debug\ntfrs_*.log | findstr /v "IO_PEND ERROR_SUCCESS FrsErrorSuccess" > %QA%\ntfrs_errscan.txt
  31. REM For DS replication
  32. @echo repadmin /showreps is running
  33. @echo off
  34. repadmin /showreps > %QA%\ds_showreps.txt
  35. @echo repadmin /showconn is running
  36. @echo off
  37. repadmin /showconn > %QA%\ds_showconn.txt