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

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