Discussion Locked

Cnage the Startup Mode using VBScript

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
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.

1 reply

by adasys

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

This discussion is closed to new replies.