Click here to Skip to main content
16,008,010 members
Home / Discussions / System Admin
   

System Admin

 
AnswerRe: Windows 2000 PCI Bus bandwidth Pin
Dan Neely6-Oct-06 9:26
Dan Neely6-Oct-06 9:26 
QuestionRightClick Pin
messages2-Oct-06 21:05
messages2-Oct-06 21:05 
AnswerRe: RightClick Pin
Michael Dunn3-Oct-06 4:37
sitebuilderMichael Dunn3-Oct-06 4:37 
GeneralRe: RightClick Pin
messages3-Oct-06 9:45
messages3-Oct-06 9:45 
GeneralRe: RightClick Pin
Michael Dunn3-Oct-06 10:08
sitebuilderMichael Dunn3-Oct-06 10:08 
QuestionPrinting text directly on network printer(s) Pin
twinee2-Oct-06 0:20
twinee2-Oct-06 0:20 
AnswerRe: Printing text directly on network printer(s) Pin
Craster3-Oct-06 3:36
Craster3-Oct-06 3:36 
QuestionVBScript! Removing COM1 from Device Manager Pin
CemUney1-Oct-06 21:30
CemUney1-Oct-06 21:30 
Hi,
I just want to uninstall COM1 or COM2 Commination Device.
I can easily do it by right clicking COM2 and click COM2 from Device Manager.

But i want to do it with VB Script.

I can the read the properties with the code below.
But i want to remove the port????


[CODE]

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select * from Win32_SerialPort",,48)
For Each objItem in colItems
Wscript.Echo "Binary: " & objItem.Binary
Wscript.Echo "Description: " & objItem.Description
Wscript.Echo "Device ID: " & objItem.DeviceID
Wscript.Echo "Maximum Baud Rate: " & objItem.MaxBaudRate
Wscript.Echo "Maximum Input Buffer Size: " & objItem.MaximumInputBufferSize
Wscript.Echo "Maximum Output Buffer Size: " & objItem.MaximumOutputBufferSize
Wscript.Echo "Name: " & objItem.Name
Wscript.Echo "OS Auto Discovered: " & objItem.OSAutoDiscovered
Wscript.Echo "PNP Device ID: " & objItem.PNPDeviceID
Wscript.Echo "Provider Type: " & objItem.ProviderType
Wscript.Echo "Settable Baud Rate: " & objItem.SettableBaudRate
Wscript.Echo "Settable Data Bits: " & objItem.SettableDataBits
Wscript.Echo "Settable Flow Control: " & objItem.SettableFlowControl
Wscript.Echo "Settable Parity: " & objItem.SettableParity
Wscript.Echo "Settable Parity Check: " & objItem.SettableParityCheck
Wscript.Echo "Settable RLSD: " & objItem.SettableRLSD
Wscript.Echo "Settable Stop Bits: " & objItem.SettableStopBits
Wscript.Echo "Supports 16-Bit Mode: " & objItem.Supports16BitMode
Wscript.Echo "Supports DTRDSR: " & objItem.SupportsDTRDSR
Wscript.Echo "Supports Elapsed Timeouts: " & objItem.SupportsElapsedTimeouts
Wscript.Echo "Supports Int Timeouts: " & objItem.SupportsIntTimeouts
Wscript.Echo "Supports Parity Check: " & objItem.SupportsParityCheck
Wscript.Echo "Supports RLSD: " & objItem.SupportsRLSD
Wscript.Echo "Supports RTSCTS: " & objItem.SupportsRTSCTS
Wscript.Echo "Supports Special Characters: " & objItem.SupportsSpecialCharacters
Wscript.Echo "Supports XOn XOff: " & objItem.SupportsXOnXOff
Wscript.Echo "Supports XOn XOff Setting: " & objItem.SupportsXOnXOffSet
Next
[/CODE]





Cem Üney
AnswerRe: VBScript! Removing COM1 from Device Manager Pin
Dave Kreskowiak2-Oct-06 5:56
mveDave Kreskowiak2-Oct-06 5:56 
QuestionUse all filter in event viewer Pin
Mekong River1-Oct-06 15:15
Mekong River1-Oct-06 15:15 
QuestionWhich API I can use to get the workgroup name Pin
jsongrts28-Sep-06 13:48
jsongrts28-Sep-06 13:48 
AnswerRe: Which API I can use to get the workgroup name Pin
Dave Kreskowiak29-Sep-06 10:19
mveDave Kreskowiak29-Sep-06 10:19 
QuestionConnection works in one way Pin
hint_5428-Sep-06 8:32
hint_5428-Sep-06 8:32 
AnswerRe: Connection works in one way Pin
Mekong River30-Sep-06 17:02
Mekong River30-Sep-06 17:02 
QuestionXP Task Manager & Threads Pin
barryrp28-Sep-06 4:47
barryrp28-Sep-06 4:47 
AnswerRe: XP Task Manager & Threads Pin
Dan Neely28-Sep-06 5:14
Dan Neely28-Sep-06 5:14 
GeneralRe: XP Task Manager & Threads Pin
barryrp28-Sep-06 5:20
barryrp28-Sep-06 5:20 
GeneralRe: XP Task Manager & Threads Pin
barryrp28-Sep-06 5:31
barryrp28-Sep-06 5:31 
AnswerRe: XP Task Manager & Threads Pin
Mike Dimmick28-Sep-06 5:29
Mike Dimmick28-Sep-06 5:29 
GeneralRe: XP Task Manager & Threads Pin
barryrp28-Sep-06 5:37
barryrp28-Sep-06 5:37 
GeneralRe: XP Task Manager & Threads Pin
Daniel Grunwald21-Oct-06 2:40
Daniel Grunwald21-Oct-06 2:40 
QuestionMy first DDoS attack! Pin
Luca Leonardo Scorcia28-Sep-06 2:04
professionalLuca Leonardo Scorcia28-Sep-06 2:04 
AnswerRe: My first DDoS attack! Pin
Dave Kreskowiak28-Sep-06 5:28
mveDave Kreskowiak28-Sep-06 5:28 
QuestionOpen port Pin
Jijo BP28-Sep-06 1:08
Jijo BP28-Sep-06 1:08 
AnswerRe: Open port Pin
Dave Kreskowiak28-Sep-06 5:26
mveDave Kreskowiak28-Sep-06 5:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.