title: JScript Enumerator and list of properties
body: <p>Consider the following WSH snippet:</p>
  
  <pre>
  var query = GetObject("winmgmts:").ExecQuery("SELECT Name FROM Win32_Printer", "WQL", 0);
  var e = new Enumerator(query);
  for ( ; !e.atEnd(); e.moveNext ()) { 
      var p = e.item();
      WScript.Echo(p.Name + " (" + p.Status + ")");
  }
  </pre>
  
  <p>It prints in every line a printer name and the word "undefined" in brackets (because <code>Status</code> property isn't exist in <code>p</code> object). The question is: how can I list all available properties from <code>p</code>? The usual technique with <code>for (var i in p) {...}</code> doesn't work--it seems that properties in <code>p</code> object aren't enumerable.</p>
  
  <p>Thanks in advance.</p>