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.

33 lines
1.0 KiB

  1. call initvals.bat
  2. if exist failed. goto badloop
  3. :goodloop
  4. sclogon /p %1 /i 10>sclogon.out || goto bad
  5. call bumpstat SUCCESS
  6. type sclogon.out
  7. sleep 1800
  8. goto goodloop
  9. :bad
  10. call bumpstat FAIL
  11. echo SCBOT running on %COMPUTERNAME% as %USERDOMAIN%\%USERNAME% >>sclogon.out
  12. detect /b 1900 >>sclogon.out
  13. nltest /sc_query:ntdev >>sclogon.out
  14. checksc -chain >>sclogon.out
  15. execmail -i sclogon.out -c todds -r smccore -s "SCBOT: FAILED!" -b ""
  16. echotime /t SmartCard logon failed %SUCCESS%/%TOTAL% %PERCENT%%%>>\\mc2\ntds\tracking\scbot.txt
  17. call cdp>failed.
  18. type sclogon.out
  19. type failed.
  20. sleep 1800
  21. :badloop
  22. sclogon /p %1>sclogon.out && goto good
  23. call bumpstat FAIL
  24. type sclogon.out
  25. sleep 1800
  26. goto badloop
  27. :good
  28. call bumpstat SUCCESS
  29. execmail -i sclogon.out -c todds -r smccore -s "SCBOT: RESUMED" -b ""
  30. echotime /t SmartCard logon resumed %SUCCESS%/%TOTAL% %PERCENT%%%>>\\mc2\ntds\tracking\scbot.txt
  31. del failed.
  32. sleep 1800
  33. goto goodloop