Solved

Update DNS records via VBScript

Posted on 2008-06-19
2
2,393 Views
Last Modified: 2011-11-25
Is there a way to update a DNS record in a Active Directory intergrated zone via VBScript?
Would the secure updates have to de disabled for the zone for this to work?
0
Comment
Question by:ENTPF
2 Comments
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 250 total points
ID: 21822276
Why not just use dnscmd, much easier. http://technet2.microsoft.com/windowsserver/en/library/D652A163-279F-4047-B3E0-0C468A4D69F31033.mspx

As to your 2nd, if you're running the script/command using the appropriate security credentials, secure updates will not affect you.  (If you don't have rights to make the changes you're trying to make, then that's obviously another question.)
0
 
LVL 22

Assisted Solution

by:Paka
Paka earned 250 total points
ID: 21824286
You can update records using vbscript but it gets pretty hairy when you need to update things other than A and reverse records.  Here's some good examples of how to do A and ptr records:
http://techtasks.com/code/viewbookcode/26

As far as rights, you can create a group that has full control of the DNS object and assign proper permissions in the DNS console, then run the script in the context of a user object that is a member of that group.
0

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…

929 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

11 Experts available now in Live!

Get 1:1 Help Now