Using Netsh in XP

  • Thread starter Thread starter Bobby
  • Start date Start date
B

Bobby

There is a way to use "netsh" to dump your configuration either dhcp or
static address. You can then change the file extension to a batch file and
just double-click on either and it will set your network adapter to those
properties.

I have seen this done before but can't get it to work. Someone help. Thanks
in advance.
 
Ive tried setting the adapter properties and then dumping the config. I
rename that file to batch but it doesnt change from dhcp to static. Cant
remember how it's done.
 
Bobby said:
Ive tried setting the adapter properties and then dumping
the config. I rename that file to batch but it doesnt change
from dhcp to static. Cant remember how it's done.
Hi,

You cannot rename the dump file to a batch file, but you can
import the dump by using the -f switch.


Here is a batch file example:

netsh.exe -f c:\netsh\ADSL_Netsh.dmp
@echo.
@echo.
ipconfig.exe /release
@echo.
@echo.
@echo Press any key to run ipconfig.exe /renew
pause
ipconfig.exe /renew
pause
 
That's what I'm doing wrong then. However I know that what I saw before was
2 batch files (e.g. dhcp.bat. static.bat) you could click on either and it
would set your adapter properties. The netsh dump command was used to create
the output.
 
Thanks for all the help. I found the article. You simply open notepad and
type in the command/s. Save as .cmd file and run it. It changes the adapter
properties. I actually saved as a batch file and placed each on the desktop.
 

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

Back
Top