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.

17 lines
499 B

  1. <HTML>
  2. <HEAD>
  3. <TITLE>WBEM VBScript Example</TITLE>
  4. <SCRIPT LANGUAGE="VBScript" FOR=window EVENT=onload>
  5. Set Service = Locator.ConnectServer()
  6. Service.Security_.ImpersonationLevel=3
  7. Set Process = Service.Get("Win32_Service.Name=""Winmgmt""")
  8. document.all.info.innerText = Process.DisplayName
  9. </SCRIPT>
  10. </HEAD>
  11. <BODY>
  12. The name of the service is
  13. <SPAN ID="info">
  14. unknown
  15. </SPAN>.
  16. <OBJECT ID="Locator" CLASSID="CLSID:76A64158-CB41-11D1-8B02-00600806D9B6"></OBJECT>
  17. </BODY>
  18. </HTML>