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.

62 lines
1.7 KiB

  1. @echo Off
  2. Rem
  3. Rem This script will update DiskKeeper 2.0 so the Administration
  4. Rem program works correctly.
  5. Rem #########################################################################
  6. Rem
  7. Rem Get the installation location of DiskKeeper 2.0 from the registry. If
  8. Rem not found, assume the app isn't installed and display an error message.
  9. Rem
  10. ..\ACRegL %Temp%\DK20.Cmd DK20INST "HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\DKSERVE.EXE" "Path" ""
  11. If Not ErrorLevel 1 Goto Cont0
  12. Echo.
  13. Echo Unable to retrieve DiskKeeper 2.0 installation location from the registry.
  14. Echo Verify that the application has already been installed and run this
  15. Echo script again.
  16. Echo.
  17. Pause
  18. Goto Done
  19. :Cont0
  20. Call %Temp%\DK20.Cmd
  21. Del %Temp%\DK20.Cmd >Nul: 2>&1
  22. Rem #########################################################################
  23. register %DK20INST% /system >Nul: 2>&1
  24. Echo DiskKeeper 2.x Multi-user Application Tuning Complete
  25. Rem
  26. Rem Get the permission compatibility mode from the registry.
  27. Rem If TSUserEnabled is 0 we need to warn user to change mode.
  28. Rem
  29. ..\ACRegL "%Temp%\tsuser.Cmd" TSUSERENABLED "HKLM\System\CurrentControlSet\Control\Terminal Server" "TSUserEnabled" ""
  30. If Exist "%Temp%\tsuser.Cmd" (
  31. Call "%Temp%\tsuser.Cmd"
  32. Del "%Temp%\tsuser.Cmd" >Nul: 2>&1
  33. )
  34. If NOT %TSUSERENABLED%==0 goto SkipWarning
  35. Echo.
  36. Echo IMPORTANT!
  37. Echo Terminal Server is currently running in Default Security mode.
  38. Echo This application requires the system to run in Relaxed Security mode
  39. Echo (permissions compatible with Terminal Server 4.0).
  40. Echo Use Terminal Services Configuration to view and change the Terminal
  41. Echo Server security mode.
  42. Echo.
  43. :SkipWarning
  44. Pause
  45. :Done