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.

12 lines
441 B

  1. //***************************************************************************
  2. //This script tests the enumeration of instances
  3. //***************************************************************************
  4. var e = new Enumerator (GetObject("winmgmts:{impersonationLevel=impersonate}").InstancesOf ("CIM_LogicalDisk"));
  5. for (;!e.atEnd();e.moveNext ())
  6. {
  7. var Disk = e.item ();
  8. WScript.Echo ("Instance:", Disk.Path_.Relpath);
  9. }