var wbemFlagReturnImmediately = 0x10; var wbemFlagForwardOnly = 0x20; var arrComputers = new Array("."); for (i = 0; i < arrComputers.length; i++) { WScript.Echo(); WScript.Echo("=========================================="); WScript.Echo("Computer: " + arrComputers[i]); WScript.Echo("=========================================="); var objWMIService = GetObject("winmgmts:\\\\" + arrComputers[i] + "\\root\\MSAPPS11"); var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_PowerPoint11SelectedTable", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("AllowAutoFit: " + objItem.AllowAutoFit); WScript.Echo("AllowPageBreaks: " + objItem.AllowPageBreaks); WScript.Echo("BottomMargin: " + objItem.BottomMargin); WScript.Echo("CellsAllowAutoFit: " + objItem.CellsAllowAutoFit); WScript.Echo("Columns: " + objItem.Columns); WScript.Echo("LeftIndent: " + objItem.LeftIndent); WScript.Echo("LeftMargin: " + objItem.LeftMargin); WScript.Echo("NestingLevel: " + objItem.NestingLevel); WScript.Echo("Page: " + objItem.Page); WScript.Echo("PreferredWidth: " + objItem.PreferredWidth); WScript.Echo("PreferredWidthType: " + objItem.PreferredWidthType); WScript.Echo("RightMargin: " + objItem.RightMargin); WScript.Echo("RowAlignment: " + objItem.RowAlignment); WScript.Echo("RowHeightRule: " + objItem.RowHeightRule); WScript.Echo("Rows: " + objItem.Rows); WScript.Echo("RowsAllowPageBreaks: " + objItem.RowsAllowPageBreaks); WScript.Echo("Section: " + objItem.Section); WScript.Echo("Spacing: " + objItem.Spacing); WScript.Echo("Tables: " + objItem.Tables); WScript.Echo("TopMargin: " + objItem.TopMargin); WScript.Echo("Uniform: " + objItem.Uniform); } }