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.

35 lines
1018 B

  1. @echo off
  2. echo.
  3. set REGINI=FALSE
  4. if exist regini.exe set REGINI=TRUE
  5. if exist %systemroot%\system32\regini.exe set REGINI=TRUE
  6. if exist %systemroot%\idw\regini.exe set REGINI=TRUE
  7. if exist %systemroot%\dump\regini.exe set REGINI=TRUE
  8. if %REGINI% == TRUE goto gotregini
  9. echo This script requires regini.exe which is not on your machine.
  10. echo Regini.exe usually resides in your idw directory.
  11. echo Please find a copy and rerun this script.
  12. goto out
  13. :gotregini
  14. echo Stopping the current redirector....
  15. net stop rdr /y
  16. echo Updating the registry for RDR2...
  17. regini rdbss.ini > nul:
  18. regini mrxsmb.ini > nul:
  19. regini rdr2.ini > nul:
  20. @rem echo Copying RDR2 drivers to your drivers directory...
  21. @rem if not exist %systemroot%\system32\drivers\rdbss.sys copy rdbss.sys %systemroot%\system32\drivers
  22. @rem if not exist %systemroot%\system32\drivers\mrxsmb.sys copy mrxsmb.sys %systemroot%\system32\drivers
  23. echo Starting RDR2...
  24. net start rdr
  25. net start netlogon
  26. net start messenger
  27. :out