Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Renew All DHCP LeasesContent of Renew All DHCP Leases.vbsMD5 Hash: 867FC5A1F7564CE8DA6FAFFAB4D8E5EE |
||
' Description: Renews all the DHCP leases currently in use on a computer.
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration") objNetworkSettings.RenewDHCPLeaseAll() | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |