Solved

Script to change the static ip assignment to dynamic (obtain IP automatically)

Posted on 2004-04-12
18
2,079 Views
Last Modified: 2012-06-27
Can anyone supply me with a script that can be run on windows xp/me/98/95 that will automatically change the static ip to dynamic (obtain IP automatically) by just inserting a disk and run the script. If it can be run automatically when you put in the disk then will even be better. This script must also configure the Internet explorer to never dial a connection and do not use proxy in the LAN setting.

Thanks in advance
0
Comment
Question by:da511
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 7
18 Comments
 
LVL 4

Accepted Solution

by:
nyck6623 earned 200 total points
ID: 10804707
netsh interface ip set address name = "Local Area Connection" source = DHCP

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

netsh interface ip show config

pause

This is something like what you are looking for.... if u do a good search on google u can find a hundred scripts to help you....
as for the lan settings and never dial up u can use group policies...
not exactly sure how to change them in the script... sorry
This should help u drastically though

NYCK
0
 
LVL 2

Author Comment

by:da511
ID: 10810422
Hi nyck6623, I will give you half the points. You have solved my main problem Howerver still looking for script to change the internet explorer. Can anyone help me.  Eanble group policy as most of my user are my guest.

Thanks
David Wong
0
 
LVL 4

Expert Comment

by:nyck6623
ID: 10812321
Thank you David, I am looking for a resolution for you.

Nyck
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 2

Author Comment

by:da511
ID: 10815909
Thanks nyck6623. It will help me tremendously if there is really such a script. I believe there is but not sure where to get it only. Once again. Thanks
0
 
LVL 4

Expert Comment

by:nyck6623
ID: 10816159
Ok i know how to do this but the script will not be a technical one... I am searching for a good one... I can do it with shell scripting... It will work but not very technical..

Nyck6623
0
 
LVL 2

Author Comment

by:da511
ID: 10821061
Can I know how to do it. Thanks
0
 
LVL 4

Expert Comment

by:nyck6623
ID: 10822304
Im writing it for u know...

Nyck
0
 
LVL 2

Author Comment

by:da511
ID: 10825123
Thanks nyck6623 :) Thanks again
0
 
LVL 4

Expert Comment

by:nyck6623
ID: 10832219
Hey da511 i made a crude script that will do it for you.. Your probably gonna crack up when you watch it workin but i tried and it worked so its all good.

Post back when you are ready for it.. also i need to know in IE, when you hit the tools button at the top. how may options do u have
4  or is it more... I need to know this before i give the final code..
0
 
LVL 4

Expert Comment

by:nyck6623
ID: 10832227
O ya u still have not given points for this one... Like you previously posted!
Nyck
0
 
LVL 2

Author Comment

by:da511
ID: 10838621
Hi nyck, giving you points is not a problem. If I accept your answer now then this topic will be closed. I may not be able to add any comment. Don't worry Nyck, I will give you the points that you deserve and also increase the pints to 200.  

Normally 6 options in IE -> Tool bars

You can also send it to NO EMAIL SOLUTIONS PLEASE if you need to send me any files.Really thanks for your help :)

Thank nyck


PLEASE DO NOT USE EMAIL  TO POST SOLUTIONS
0
 
LVL 2

Author Comment

by:da511
ID: 10840358
What if some of my users have 4,5 or 6 options? Will it work
0
 
LVL 4

Expert Comment

by:nyck6623
ID: 10841367
Im doing the script a odd way but functional... it kinda will matter but if u need to ill make three scripts... All it needs is 2 lines added for 5 and 6 options..
i will email it to ya in a few as text files change them to .vbs

Nyck
0
 
LVL 2

Author Comment

by:da511
ID: 10845765
Nyck, it did not work for my computer. It went to some where else. Anyway, I will still award you with the points that you deserved for your effort. Let me know if you have any better ways.
0
 
LVL 2

Author Comment

by:da511
ID: 10845769
Thank You very much
0
 
LVL 2

Author Comment

by:da511
ID: 10847821
Nyck, can you help me to check if there is any other ways that can configure  Internet Explorer. The script that you supply to me cannot  really work. It configure the the wrong things and even when to configure other things that I did not wanted.

Thanks Thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are 2 things you must have in order to connect to the internet behind a router, The "Gateway IP" of the router, which is usually something like 192.168.xxx.1, I've seen routers with default values of: 192.168.0.1, 192.168.1.1, 192.168.11.1, …
Migration of Exchange mailbox can be done with the ExProfre.exe tool. But at times, when the ExProfre.exe tool migrates the Exchange Server user profile, it results in numerous synchronization problems. Synchronization error messages appear in the e…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question