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.

20 lines
522 B

  1. <HTML>
  2. <HEAD>
  3. <TITLE>WBEM VBScript Example</TITLE>
  4. <SCRIPT FOR="document" EVENT="onclick()" LANGUAGE ="JavaScript">
  5. var service = locator.ConnectServer();
  6. service.Security_.ImpersonationLevel=3;
  7. var 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>