General discussion


Cnage the Startup Mode using VBScript

By rudy.torres ·
I am trying to disable the Netbios over TCPIP driver using a vbscript. I can disable this from the Device Manager -->View-->Non Plug and Play Drivers. Then I select the Netbios over TCPIC, click on the Driver Tab and change the startup mode. Any help you can give would be appreciated.

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
Thread display: Collapse - | Expand +

All Comments

Collapse -

by adasys In reply to Cnage the Startup Mode us ...

On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetCards = objWMIService.ExecQuery _
("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")
For Each objNetCard in colNetCards
'0 = netbios over dhcp, 1= enable netbios, 2 disable netbios

Back to Windows Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums