how can i write it to vbs file and then run it ???
Code:
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colNetCards = objWMIService.ExecQuery _ ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True") For Each objNetCard in colNetCards arrDNSServers = Array("0.0.0.0", "0.0.0.0") objNetCard.SetDNSServerSearchOrder(arrDNSServers) Next
Comment