Dear Crahak, What i am trying to do is that i want to ping from client PC in every minute to default Router( we have 2 routers) and if the link is down, it will need to change default gateway to another router. I had tried manually with Netsh command to change default gateway setting in TCP/IP properties. Currently, if the link is down, user need to manually run this Netsh batch file to change default gateway. After that their pc can switch to another default gateway. I think it will ok with vbscript for auto ping and change default gateway setting. But the problem is that i have a little knowledge in vbscript. Thanks for your time and knowledge sharing.