Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Configure a Computer to Use a Dynamically-assigned DNS ServerContent of Configure a Computer to Use a Dynamically-assigned DNS Server.vbsMD5 Hash: 9684C05C9D0641792E38D702BE6AEAA7 |
||
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") For Each objNetAdapter In colNetAdapters errEnable = objNetAdapter.EnableDHCP() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |