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.

58 lines
1.4 KiB

  1. 'Copyright (c)<2000>Microsoft Corporation. All rights reserved.
  2. Function MofcompAlertEmail
  3. Dim WshShell
  4. Set WshShell = CreateObject("WScript.Shell")
  5. WshShell.Run "mofcomp %SYSTEMROOT%\system32\serverappliance\setup\saalertemaileventconsumer.mof", 0, TRUE
  6. End Function
  7. Function MofcompAppMgr
  8. Dim WshShell
  9. Set WshShell = CreateObject("WScript.Shell")
  10. WshShell.Run "mofcomp %SYSTEMROOT%\system32\serverappliance\setup\appmgr.mof", 0, TRUE
  11. End Function
  12. Function MofcompDateTime
  13. Dim WshShell
  14. Dim dt
  15. Set WshShell = CreateObject("WScript.Shell")
  16. On Error Resume Next
  17. dt = WshShell.RegRead("HKLM\Software\Classes\CLSID\{F0229EA0-D1D8-11D2-84FC-0080C7227EA1}\ProgID\")
  18. if dt="SetDateTime.DateTime.1" then
  19. WshShell.Run "mofcomp %SYSTEMROOT%\system32\serverappliance\setup\datetimereg.mof", 0, TRUE
  20. end if
  21. End Function
  22. Function MofcompEventFilter
  23. Dim WshShell
  24. Set WshShell = CreateObject("WScript.Shell")
  25. WshShell.Run "mofcomp %SYSTEMROOT%\system32\serverappliance\setup\saevfltr.mof", 0, TRUE
  26. End Function
  27. Function MofcompLocalUI
  28. Dim WshShell, dt
  29. Set WshShell = CreateObject("WScript.Shell")
  30. On Error Resume Next
  31. WshShell.Run "mofcomp %SYSTEMROOT%\system32\serverappliance\setup\sadiskmonitor.mof", 0, TRUE
  32. WshShell.Run "mofcomp %SYSTEMROOT%\system32\serverappliance\setup\sanetworkmonitor.mof", 0, TRUE
  33. End Function