Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI Win32_Word11HeaderAndFooter QueryContent of WMI Win32_Word11HeaderAndFooter Query.jsMD5 Hash: A3A6E079B30EC6327E580561956BF62D |
||
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_Word11HeaderAndFooter", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("EvenFooterChars: " + objItem.EvenFooterChars); WScript.Echo("EvenFooterLinkedToPrevious: " + objItem.EvenFooterLinkedToPrevious); WScript.Echo("EvenFooterText: " + objItem.EvenFooterText); WScript.Echo("EvenHeaderChars: " + objItem.EvenHeaderChars); WScript.Echo("EvenHeaderLinkedToPrevious: " + objItem.EvenHeaderLinkedToPrevious); WScript.Echo("EvenHeaderText: " + objItem.EvenHeaderText); WScript.Echo("FirstFooterChars: " + objItem.FirstFooterChars); WScript.Echo("FirstFooterLinkedToPrevious: " + objItem.FirstFooterLinkedToPrevious); WScript.Echo("FirstFooterText: " + objItem.FirstFooterText); WScript.Echo("FirstHeaderChars: " + objItem.FirstHeaderChars); WScript.Echo("FirstHeaderLinkedToPrevious: " + objItem.FirstHeaderLinkedToPrevious); WScript.Echo("FirstHeaderText: " + objItem.FirstHeaderText); WScript.Echo("FooterChars: " + objItem.FooterChars); WScript.Echo("FooterDistance: " + objItem.FooterDistance); WScript.Echo("FooterLinkedToPrevious: " + objItem.FooterLinkedToPrevious); WScript.Echo("FooterText: " + objItem.FooterText); WScript.Echo("HeaderChars: " + objItem.HeaderChars); WScript.Echo("HeaderDistance: " + objItem.HeaderDistance); WScript.Echo("HeaderLinkedToPrevious: " + objItem.HeaderLinkedToPrevious); WScript.Echo("HeaderText: " + objItem.HeaderText); WScript.Echo("Notables: " + objItem.Notables); WScript.Echo("Section: " + objItem.Section); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |