10 lines
275 B
Plaintext
10 lines
275 B
Plaintext
' The following sample retrieves all instances of the class
|
|
' Win32_LogicalDisk.
|
|
|
|
Set objServices = GetObject("cim:root/cimv2")
|
|
Set objEnum = objServices.InstancesOf ("Win32_LogicalDisk")
|
|
|
|
for each Instance in objEnum
|
|
WScript.Echo Instance.Path_.DisplayName
|
|
next
|