|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
DHCP autoconfig proggy?
Hi
I have a client who has a internet cafe with a DHCP server that assigns ip's to individual computers.. Now there are people who come with laptops and want to connect to this network and he has to go and set the network settings to "Obtain an IP address automatically" My question is. Is there somekind of script or executable file that you can put on a disk to automatically do this? Thank you kindly Louis
__________________
http://www.capeseo.com |
|
#2
|
||||
|
||||
|
Yes, you can use netsh.exe.
Here is the complete doc of it: http://www.microsoft.com/windowsxp/...oc/en/netsh.asp Run the followind in a .cmd or .bat script: Code:
netsh interface ip set address source=dhcp This works on NT platform computers. |
|
#3
|
||||
|
||||
|
Thanks you thank you thank you
Now I just have to find a way for windows98 |
|
#4
|
||||
|
||||
|
For Win2000 its
netsh interface ip set address "Local Area Connection" dhcp It works for XP too |
|
#5
|
||||
|
||||
|
Yes, good point. You need to specify the name of the interface that you want to set.
Good luck with Win98. If you find something, let me know. I have been searching for years now. ![]() As far as I understand, this is not possible because Win98 does not have the ability to dynamically unload and reload network components. Even if you do manage to pass it a new ip address (maybe via the registry?) you would still have to reboot for it to take effect. |
|
#6
|
|||
|
|||
|
If I remember correctly, you can actually go into Device Manager in Win9x and disable and then enable a given NIC after you modify TCP/IP settings. It made things a lot easier than rebooting when you change something.
Haven't really thought how you'd do this programmatically, but if you can do it, it should work...? |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Windows Help > DHCP autoconfig proggy? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|