Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2004-04-12
18
Medium Priority
?
2,083 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 800 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
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Are you unable to synchronize your OST (Offline Storage Table) file with Microsoft Exchange Server? Is your OST file exceeding 2 GB size limit? In Microsoft Outlook 2002 and earlier versions, there is a 2 GB size limit for the OST file. If the file …
Sometimes people don't understand why download speed shows differently for Windows than Linux.Specially, this article covers and shows the solution for throughput difference for Windows than a Linux machine. For this, I arranged a test scenario.I…
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…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

721 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