Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

8 lines
303 B

' The following sample enumerates all instances of the class
' Win32_LogicalDisk, and counts the items returned.
Set objServices = GetObject("cim:root/cimv2")
Set objEnum = objServices.ExecQuery ("select * from Win32_LogicalDisk")
count = objEnum.Count
WScript.Echo count, "items retrieved"