18 lines
499 B
HTML
18 lines
499 B
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>WBEM VBScript Example</TITLE>
|
|
<SCRIPT LANGUAGE="VBScript" FOR=window EVENT=onload>
|
|
Set Service = Locator.ConnectServer()
|
|
Service.Security_.ImpersonationLevel=3
|
|
Set Process = Service.Get("Win32_Service.Name=""Winmgmt""")
|
|
document.all.info.innerText = Process.DisplayName
|
|
</SCRIPT>
|
|
</HEAD>
|
|
<BODY>
|
|
The name of the service is
|
|
<SPAN ID="info">
|
|
unknown
|
|
</SPAN>.
|
|
<OBJECT ID="Locator" CLASSID="CLSID:76A64158-CB41-11D1-8B02-00600806D9B6"></OBJECT>
|
|
</BODY>
|
|
</HTML> |