// create device collection class var Devices = new ActiveXObject( "StarBurnX.Devices" ); // iterate through collection for (var i=0; i<Devices.Count; i++) { // Get indexed device var Device = Devices.GetDevice(i); // Show device info WScript.echo('Found device = ' + Device.ProductID +' '+ Device.VendorID + 'n'+ Device.DeviceName ); }