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.

15 lines
699 B

  1. 'Copyright (c)<2000>Microsoft Corporation. All rights reserved.
  2. Dim WshShell
  3. Dim te
  4. Set WshShell = WScript.CreateObject("WScript.Shell")
  5. On Error Resume Next
  6. te = WshShell.RegRead("HKLM\Software\Microsoft\ServerAppliance\ApplianceManager\ObjectManagers\Microsoft_SA_TASK\ApplianceInitializationTask\TaskExecutables")
  7. 'Remove alloccurances of setalertemail incase there are more
  8. 'Append SetChimesettings at the end of the key
  9. te = Replace(te," setalertemail.alertemail.1"," ",1,-1,1)
  10. te = te + " setalertemail.alertemail.1"
  11. WshShell.RegWrite "HKLM\Software\Microsoft\ServerAppliance\ApplianceManager\ObjectManagers\Microsoft_SA_TASK\ApplianceInitializationTask\TaskExecutables",te