Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Assign the DNS Domain for a Network AdapterContent of Assign the DNS Domain for a Network Adapter.vbsMD5 Hash: F81F3E0600BE3B6E6742B7ED14C2084A |
||
' Description: Sets the DNS domain for a TCP/IP-bound network adapter.
On Error Resume Next 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 Wscript.Echo objNetCard.SetDNSDomain("fabrikam.com") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |