General discussion

Locked

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
objNetCard.SetTCPIPNetBIOS(2)
'0 = netbios over dhcp, 1= enable netbios, 2 disable netbios
Next

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

Related Discussions

Related Forums