hello world

启用和禁用TCPIP上的Netbios

'设置传输值1是启用,设置2为禁用
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(1)
Next

   欢迎加入QQ技术群聊:70539804

posted @ 2015-09-08 15:15  浩天四哥  阅读(2797)  评论(0编辑  收藏  举报