Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI MSIPNAT_PacketDroppedEvent QueryContent of WMI MSIPNAT_PacketDroppedEvent Query.jsMD5 Hash: A53E8144254D40C2C8251A590EDB22AD |
||
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\\WMI"); var colItems = objWMIService.ExecQuery("SELECT * FROM MSIPNAT_PacketDroppedEvent", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Active: " + objItem.Active); WScript.Echo("DestinationAddress: " + objItem.DestinationAddress); WScript.Echo("DestinationIdentifier: " + objItem.DestinationIdentifier); WScript.Echo("InstanceName: " + objItem.InstanceName); WScript.Echo("PacketPath: " + objItem.PacketPath); WScript.Echo("PacketSize: " + objItem.PacketSize); WScript.Echo("Protocol: " + objItem.Protocol); WScript.Echo("ProtocolData1: " + objItem.ProtocolData1); WScript.Echo("ProtocolData2: " + objItem.ProtocolData2); WScript.Echo("ProtocolData3: " + objItem.ProtocolData3); WScript.Echo("ProtocolData4: " + objItem.ProtocolData4); try { WScript.Echo("SECURITY_DESCRIPTOR: " + (objItem.SECURITY_DESCRIPTOR.toArray()).join(",")); } catch(e) { WScript.Echo("SECURITY_DESCRIPTOR: null"); } WScript.Echo("SourceAddress: " + objItem.SourceAddress); WScript.Echo("SourceIdentifier: " + objItem.SourceIdentifier); WScript.Echo("TIME_CREATED: " + objItem.TIME_CREATED); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |