Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

is there a script to change dns settings in vb6

I would like to use a script to change the dns server settings of a windows computer.  Does anyone know how I can do this using vb6?
Avatar of advfinance
advfinance
Flag of United Kingdom of Great Britain and Northern Ireland image

You can use netsh to change DNS settings.

For example, to add a DNS server to the "Local Area Connection" interface.

netsh interface ip add dns "Local Area Connection" 194.168.4.100

Open in new window

Avatar of al4629740

ASKER

Can I run this script from vb6?
ASKER CERTIFIED SOLUTION
Avatar of advfinance
advfinance
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It needs to be done in vb6 through an app.  After they uninstall the app, it will need to reset the settings back to original.
Call it from your installer?

--
Chris