Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Release the DHCP Lease for a Network AdapterContent of Release the DHCP Lease for a Network Adapter.vbsMD5 Hash: 54DE253A6A4CA7B7D4690B3BFD66EE8B |
||
' Description: Releases the DHCP leases for all TCP/IP-bound network adapters on 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.ReleaseDHCPLease() Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |