2025-04-27 07:49:33 -04:00

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