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

8 lines
247 B
Plaintext

' The following sample retrieves a single instance of the class
' Win32_LogicalDisk.
Set objServices = GetObject("cim:root/cimv2")
Set objInstance = objServices.Get ("Win32_LogicalDisk=""C:""")
WScript.Echo objInstance.Path_.DisplayName