Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Adding secondary DNS

Posted on 2011-09-21
3
Medium Priority
?
213 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
3 Comments
 
LVL 15

Assisted Solution

by:Ian Meredith
Ian Meredith earned 960 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 1040 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

WatchGuard Case Study: Museum of Flight

“With limited money and limited staffing, we didn’t have a lot of choices in terms of what we could do to bring efficiency. WatchGuard played a central part in changing that.” To provide strong, secure Wi-Fi access within the museum, Hunter chose to deploy WatchGuard’s AP120 APs.

Question has a verified solution.

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

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…
Issue: Unstable cursor in Windows XP and Windows runs extremely slow in that any click will bring up the Hour glass (sometimes for several seconds before giving you what you want) . Troubleshooting Process and the FINAL FIX: This issue see…
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…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

886 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