Solved

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

Posted on 2004-04-12
18
2,075 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
  • 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
 
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
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.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing outside margins from DOS 16 146
Virtual Win Xp won't get an ip from DHCP 4 85
Best practices power settings GPO Win 10 4 83
cloning computer 13 67
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now