7 lines
250 B
JavaScript
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); |