Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Renew the DHCP Lease for a Network AdapterContent of Renew the DHCP Lease for a Network Adapter.vbsMD5 Hash: BFC900B54110993FC3CB81220C5AA277 |
||
' Description: Renews the DHCP lease for each TCP/IP-bound network adapter in a computer.
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 objNetCard.RenewDHCPLease() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |