Loading |
VBScript |
JavaScript |
Powershell |
Search Options: WMI MSSerial_CommInfo QueryContent of WMI MSSerial_CommInfo Query.jsMD5 Hash: 5E693C68754226B0DFF615DD8C347ED6 |
||
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 MSSerial_CommInfo", "WQL", wbemFlagReturnImmediately | wbemFlagForwardOnly); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Active: " + objItem.Active); WScript.Echo("BaudRate: " + objItem.BaudRate); WScript.Echo("BitsPerByte: " + objItem.BitsPerByte); WScript.Echo("InstanceName: " + objItem.InstanceName); WScript.Echo("IsBusy: " + objItem.IsBusy); WScript.Echo("MaximumBaudRate: " + objItem.MaximumBaudRate); WScript.Echo("MaximumInputBufferSize: " + objItem.MaximumInputBufferSize); WScript.Echo("MaximumOutputBufferSize: " + objItem.MaximumOutputBufferSize); WScript.Echo("Parity: " + objItem.Parity); WScript.Echo("ParityCheckEnable: " + objItem.ParityCheckEnable); WScript.Echo("SettableBaudRate: " + objItem.SettableBaudRate); WScript.Echo("SettableDataBits: " + objItem.SettableDataBits); WScript.Echo("SettableFlowControl: " + objItem.SettableFlowControl); WScript.Echo("SettableParity: " + objItem.SettableParity); WScript.Echo("SettableParityCheck: " + objItem.SettableParityCheck); WScript.Echo("SettableStopBits: " + objItem.SettableStopBits); WScript.Echo("StopBits: " + objItem.StopBits); WScript.Echo("Support16BitMode: " + objItem.Support16BitMode); WScript.Echo("SupportDTRDSR: " + objItem.SupportDTRDSR); WScript.Echo("SupportIntervalTimeouts: " + objItem.SupportIntervalTimeouts); WScript.Echo("SupportParityCheck: " + objItem.SupportParityCheck); WScript.Echo("SupportRTSCTS: " + objItem.SupportRTSCTS); WScript.Echo("SupportXonXoff: " + objItem.SupportXonXoff); WScript.Echo("XoffCharacter: " + objItem.XoffCharacter); WScript.Echo("XoffXmitThreshold: " + objItem.XoffXmitThreshold); WScript.Echo("XonCharacter: " + objItem.XonCharacter); WScript.Echo("XonXmitThreshold: " + objItem.XonXmitThreshold); } } | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |