Windows XP IP configuration "Netsh" batch file problem !

May 28, 2010
Reaction score
Has anyone got any ideas ? I've got a load of PC's to configure with static IP addresses and I'm trying to use the netsh command within a batch file so that I ultimately only have to manually modify the last octet on each machine ( I know thats why someone came up with DHCP to make life easy! )

The problem is the batch file runs the first netsh command and then goes back to the beginning in a perpetual loop. The line is shown below and I've tried a few scripts from the web but I guess I am missing something.

Target machines are XP Pro SP2

Script is :-

netsh interface ip set address name = "Local Area Connection" source = static addr = mask =

netsh interface ip set address name = "Local Area Connection" gateway = gwmetric = 1

netsh interface ip set dns name = "Local Area Connection" source = static addr =

:netsh interface ip add dns name = "Local Area Connection" addr =

netsh interface ip show config

Any help much appreciated


May 11, 2007
Reaction score
IP configuration "Netsh" batch file :Reply to Thread

I'm a little old fashon but I used a floppy made by what I believe
was the host computer and used it to add on the guests. Each computer has to be programed for network and sharing. You can RUN "ipconfig" from the start button and see if windows can extrapalate the ip address.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Windows XP WinRar batch file? 0
Windows XP Batch file editing 0
Windows XP LUA Script in a Batch File 1
Windows XP Going away need to create Batch file 5
Windows XP Network/Bad Configuration Problem in XP 0
Windows XP simple ftp batch ?? 0
Windows XP IP Address 3
Windows XP Output Date Created and Date Modified to a txt file using a batch file 0