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.

37 lines
1.3 KiB

  1. @echo off
  2. @set INS_SERVICE=FTPServer
  3. @set INS_FILE=ftpsvc
  4. @set INS_INI_FILE=%INS_FILE%.ini
  5. echo.
  6. echo This batch file installs the Microsoft %INS_SERVICE% into the registry
  7. echo of the local machine and creates a new user account called "Internet"
  8. echo with a blank password. The "Internet" account is added to the
  9. echo "Guests" local group account.
  10. echo.
  11. echo The server performs all actions on the behalf of the user account
  12. echo "Internet" when the client browser doesn't use a user name or password.
  13. echo.
  14. echo Unless you wish to deny all browsers that do not support the
  15. echo "Authorization:" field (most do not), the Internet user account must
  16. echo have a blank password.
  17. echo.
  18. echo You can change various server parameters by modifying %INS_INI_FILE% and
  19. echo re-running this batchfile.
  20. echo.
  21. echo If you are satisfied with the defaults specified in %INS_INI_FILE%, press
  22. echo any key to continue.
  23. echo.
  24. echo.
  25. pause
  26. echo Setting up registry for %INS_FILE%
  27. net user Internet /add /passwordchg:no /expires:never /comment:"Internet user account" /fullname:"Internet User" /usercomment:"Internet user account"
  28. net localgroup Guests Internet /ADD
  29. findstr /V /C:"//" %INS_INI_FILE% > %INS_FILE%.tmp
  30. regini %INS_FILE%.tmp
  31. del %INS_FILE%.tmp