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

7 lines
250 B
JavaScript

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