#My best solution: ipconfig -release | Out-Null ipconfig -renew | Out-Null netsh winsock reset | Out-Null netsh int ip reset | Out-Null shutdown -r -t 0