Solved

Adding secondary DNS

Posted on 2011-09-21
3
210 Views
Last Modified: 2012-05-12
Need help to write a script to add secondary dns in the network computers. User that were logged into the pc's are not admin.
0
Comment
Question by:tech1guy
[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
3 Comments
 
LVL 15

Assisted Solution

by:Ian Meredith
Ian Meredith earned 240 total points
ID: 36577923
Have a look at these two links - you will find vb code for what you're wanting to do.

If you add your script as a startup object in Group Policy you won't need to worry about users not be admins.


http://www.petri.co.il/forums/showthread.php?t=17235

http://www.computing.net/answers/programming/vbscript-to-change-ip-and-dns/21362.html
0
 

Author Comment

by:tech1guy
ID: 36578395
I prefer not to use vb....I prefer txt/bat..
0
 
LVL 39

Accepted Solution

by:
Krzysztof Pytko earned 260 total points
ID: 36578688
Check if you are interested in NETSH utility (built-in one). You can use it to set up IP address or DNS servers
About NETSH utility
http://technet.microsoft.com/pl-pl/library/cc785383%28WS.10%29.aspx

For setting up static IP with DNS (you can skip commands for IP address, use only part for DNS) at
http://www.petri.co.il/configure_tcp_ip_from_cmd.htm

NETSH can be used with -r switch to make settings on remote computer.

But I'm wondering why you don't want to use DHCP server for that? You can set up in Scope options, option no 006 with all DNS servers list in your network. Clients will get those settings automatically.

Regards,
Krzysztof
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
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, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

636 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