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.

78 lines
2.2 KiB

  1. @Echo Off
  2. Rem #########################################################################
  3. Rem
  4. Rem Verify that %RootDrive% has been configured and set it for this script.
  5. Rem
  6. Call "%SystemRoot%\Application Compatibility Scripts\ChkRoot.Cmd"
  7. If "%_CHKROOT%" == "FAIL" Goto Done
  8. Rem #########################################################################
  9. Rem
  10. Rem Change Registry Keys to make paths point to user specific directories.
  11. Rem
  12. Rem If not currently in Install Mode, change to Install Mode.
  13. Set __OrigMode=Install
  14. ChgUsr /query > Nul:
  15. if Not ErrorLevel 101 Goto Begin
  16. Set __OrigMode=Exec
  17. Change User /Install > Nul:
  18. :Begin
  19. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\NetNav30.Key NetNav30.Key
  20. regini netnav30.key > Nul:
  21. Rem If original mode was execute, change back to Execute Mode.
  22. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  23. Set __OrigMode=
  24. Rem #########################################################################
  25. Rem
  26. Rem Add Nav30Usr.Cmd to the UsrLogn2.Cmd script
  27. Rem
  28. FindStr /I Nav30Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  29. If Not ErrorLevel 1 Goto Skip1
  30. Echo Call Nav30Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  31. :Skip1
  32. Echo.
  33. Echo To insure proper operation of Netscape Navigator, users who are
  34. Echo currently logged on must log off and log on again before
  35. Echo running Netscape Navigator.
  36. Echo.
  37. Echo Netscape Navigator 3.x Multi-user Application Tuning Complete
  38. Rem
  39. Rem Get the permission compatibility mode from the registry.
  40. Rem If TSUserEnabled is 0 we need to warn user to change mode.
  41. Rem
  42. ..\ACRegL "%Temp%\tsuser.Cmd" TSUSERENABLED "HKLM\System\CurrentControlSet\Control\Terminal Server" "TSUserEnabled" ""
  43. If Exist "%Temp%\tsuser.Cmd" (
  44. Call "%Temp%\tsuser.Cmd"
  45. Del "%Temp%\tsuser.Cmd" >Nul: 2>&1
  46. )
  47. If NOT %TSUSERENABLED%==0 goto SkipWarning
  48. Echo.
  49. Echo IMPORTANT!
  50. Echo Terminal Server is currently running in Default Security mode.
  51. Echo This application requires the system to run in Relaxed Security mode
  52. Echo (permissions compatible with Terminal Server 4.0).
  53. Echo Use Terminal Services Configuration to view and change the Terminal
  54. Echo Server security mode.
  55. Echo.
  56. :SkipWarning
  57. Pause
  58. :Done