Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Enable WINS for All Network AdaptersContent of Enable WINS for All Network Adapters.vbsMD5 Hash: 52EC28DC75267B039EAAE10C32335963 |
||
' Description: Enables WINS on all the network adapters installed in a computer.
On Error Resume Next Const DNS_ENABLED_FOR_WINS_RESOLUTION = True Const USE_LMHOST_FILE = False strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration") errResult = objNetworkSettings.EnableWINS(DNS_ENABLED_FOR_WINS_RESOLUTION,_ USE_LMHOST_FILE) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |