Solved

Update DNS records via VBScript

Posted on 2008-06-19
2
2,394 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
This script can help you clean up your user profile database by comparing profiles to Active Directory users in a particular OU, and removing the profiles that don't match.
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

813 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

12 Experts available now in Live!

Get 1:1 Help Now