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.
19 lines
558 B
19 lines
558 B
<job id="VectorExample">
|
|
<reference object="WbemScripting.SWbemLocator" version="1.2"/>
|
|
<script language="VBScript">
|
|
|
|
set l = CreateObject("WbemScripting.SWbemLocator")
|
|
|
|
' Start by opening a namespace by default
|
|
set o = l.Open("root\cimv2")
|
|
WScript.Echo typename(o)
|
|
|
|
' Open an object by default
|
|
set o = l.Open("root\cimv2:Win32_logicaldisk='C:'")
|
|
WScript.Echo typename(o)
|
|
|
|
' And force an object to be opened as a scope
|
|
set o = l.Open("root\default:__CIMOMIdentification=@", ,,,,,wbemTypeServices)
|
|
WScript.Echo typename(o)
|
|
</script>
|
|
</job>
|