Solved

Update DNS records via VBScript

Posted on 2008-06-19
2
2,391 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Do you have users whose passwords are expiring and they are constantly calling you?  Well I sure did and needed a way to put an end to this.  We have a lot of remote users which would not be notified that their passwords were expiring since they wer…
[b]Ok so now I will show you how to add a user name to the description at login. [/b] First connect to your DC (Domain Controller / Active Directory Server) SET PERMISSIONS FOR SCRIPT TO UPDATE COMPUTER DESCRIPTION TO USERNAME 1. Open Active …
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 tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

771 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