• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2415
  • Last Modified:

Update DNS records via VBScript

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?
2 Solutions
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.)
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:

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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now