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.

135 lines
4.3 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. Call "%SystemRoot%\Application Compatibility Scripts\SetPaths.Cmd"
  9. If "%_SETPATHS%" == "FAIL" Goto Done
  10. Rem #########################################################################
  11. Rem
  12. Rem Remove Find Fast from the Startup menu. Find Fast is resource
  13. Rem intensive and will impact system performance.
  14. Rem
  15. If Not Exist "%COMMON_STARTUP%\Microsoft Office Find Fast Indexer.lnk" Goto Cont1
  16. Del "%COMMON_STARTUP%\Microsoft Office Find Fast Indexer.lnk" >Nul: 2>&1
  17. :Cont1
  18. If Not Exist "%USER_STARTUP%\Microsoft Office Find Fast Indexer.lnk" Goto Cont2
  19. Del "%USER_STARTUP%\Microsoft Office Find Fast Indexer.lnk" >Nul: 2>&1
  20. :Cont2
  21. Rem #########################################################################
  22. Rem
  23. Rem Move user dictionary to user directory.
  24. Rem
  25. Rem If not currently in Install Mode, change to Install Mode.
  26. Set __OrigMode=Install
  27. ChgUsr /query > Nul:
  28. if Not ErrorLevel 101 Goto Begin
  29. Set __OrigMode=Exec
  30. Change User /Install > Nul:
  31. :Begin
  32. Set __SharedTools=Shared Tools
  33. If Not "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto acsrCont1
  34. If Not Exist "%ProgramFiles(x86)%" goto acsrCont1
  35. Set __SharedTools=Shared Tools (x86)
  36. :acsrCont1
  37. ..\acsr "#ROOTDRIVE#" "%RootDrive%" Template\msproj95.Key msproj95.tmp
  38. ..\acsr "#__SharedTools#" "%__SharedTools%" msproj95.tmp msproj95.Key
  39. Del msproj95.tmp >Nul: 2>&1
  40. regini msproj95.key > Nul:
  41. Rem If original mode was execute, change back to Execute Mode.
  42. If "%__OrigMode%" == "Exec" Change User /Execute > Nul:
  43. Set __OrigMode=
  44. Rem #########################################################################
  45. Rem
  46. Rem This file will be read during logon.
  47. Rem Give users access.
  48. Cacls ..\Logon\Template\prj95usr.key /E /P "Authenticated Users":F >Nul: 2>&1
  49. Rem #########################################################################
  50. Rem
  51. Rem Add proj95Usr.Cmd to the UsrLogn2.Cmd script
  52. Rem
  53. FindStr /I prj95Usr %SystemRoot%\System32\UsrLogn2.Cmd >Nul: 2>&1
  54. If Not ErrorLevel 1 Goto Skip2
  55. Echo Call prj95Usr.Cmd >> %SystemRoot%\System32\UsrLogn2.Cmd
  56. :Skip2
  57. Rem #########################################################################
  58. Echo.
  59. Echo The Administrator can give each user a unique default directory by
  60. Echo following these steps:
  61. Echo.
  62. Echo 1) Click the Start menu with your alternate mouse button.
  63. Echo 2) Select Explore All Users from the pop-up menu.
  64. Echo Explorer will appear.
  65. Echo 3) Double click on the Programs folder in the right hand side of the window.
  66. Echo 4) Click with your alternate mouse button on the Microsoft Project icon in
  67. Echo the right hand side of the window.
  68. Echo 5) Select Properties from the pop-up menu.
  69. Echo 6) Choose the Shortcut tab and change the Start in: entry. Choose OK.
  70. Echo.
  71. Echo Note: Each user has %RootDrive% mapped to their home directory.
  72. Echo The recommended value for Start In: is %RootDrive%\My Documents.
  73. Echo.
  74. Pause
  75. Rem #########################################################################
  76. Echo.
  77. Echo To insure proper operation of Project 95, users who are
  78. Echo currently logged on must log off and log on again before
  79. Echo running any application.
  80. Echo.
  81. Echo Microsoft Project 95 Multi-user Application Tuning Complete
  82. Rem
  83. Rem Get the permission compatibility mode from the registry.
  84. Rem If TSUserEnabled is 0 we need to warn user to change mode.
  85. Rem
  86. ..\ACRegL "%Temp%\tsuser.Cmd" TSUSERENABLED "HKLM\System\CurrentControlSet\Control\Terminal Server" "TSUserEnabled" ""
  87. If Exist "%Temp%\tsuser.Cmd" (
  88. Call "%Temp%\tsuser.Cmd"
  89. Del "%Temp%\tsuser.Cmd" >Nul: 2>&1
  90. )
  91. If NOT %TSUSERENABLED%==0 goto SkipWarning
  92. Echo.
  93. Echo IMPORTANT!
  94. Echo Terminal Server is currently running in Default Security mode.
  95. Echo This application requires the system to run in Relaxed Security mode
  96. Echo (permissions compatible with Terminal Server 4.0).
  97. Echo Use Terminal Services Configuration to view and change the Terminal
  98. Echo Server security mode.
  99. Echo.
  100. :SkipWarning
  101. Pause
  102. :Done