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.
 
 
 
 
 
 

21 lines
482 B

<HTML>
<HEAD>
<TITLE>WBEM VBScript Example</TITLE>
<SCRIPT LANGUAGE="VBScript">
Sub window_onload
Set Locator = CreateObject("WbemScripting.SWbemLocator")
Set Service = Locator.ConnectServer()
Service.Security_.ImpersonationLevel=3
Set Process = Service.Get("Win32_Service.Name=""Winmgmt""")
document.all.info.innerText = Process.DisplayName
end sub
</SCRIPT>
</HEAD>
<BODY>
The name of the service is
<SPAN ID="info">
unknown
</SPAN>.
</BODY>
</HTML>