Microsoft
Software
Hardware
Network
Question : Change default gateway with a script
Hi everyone,
I have a Windows 2003 network with 75 XP clients. I want to write a batch file script that I will run as a domain admin remotely against all client PCs to simply change the default gateway address for the "Local Area Connection" only.
I've been trying to write a script using netsh, but the syntax keeps causing me problems.
For example, I would like to change the default gateway from 192.168.1.1 to 192.168.1.5 on the Local Area Connection on all clients. All clients use static addressing.
Thanks for any help you can provide.
Answer : Change default gateway with a script
Correction: psexec \\
cmd /C netsh interface ip set address name="Local Area Connection" gateway=192.168.1.5 gwmetric=0
Random Solutions
Unable to connect to ftp site in IE8
Domain controller not found
sendmail relay/gateway - intranet to internet
User problem with OWA Premium
123-Reg/GlobalSign SSL certificate install problem
How to Configure DNS for Active Directory
nic/domain
Creating Record for 1st AD server with DNS in Server 2003
SMTP message headers
How do I fix The requested resource () is not available. error in tomcat5 running on centos 5.3 when trying to setup Alfresco