Update 7/17/2011: New links
Update 8/23/2013: Fixed links
Today I am posting sample code on how to manage IIS 6 and Active directory using ADSI in VB.NET.
And managing DNS (creating zones, records and enumeration) using WMI in VB.NET.
There are four separate projects.
This code is posted as-is! It is to be used as a sample on how to do the work. It is not intended to be used in production!
http://dl.dropbox.com/u/3275573/blog/web.zip - ADSI management of IIS 6 Sites and AppPools
http://dl.dropbox.com/u/3275573/blog/DNS.zip - WMI management of Microsoft DNS Zones and Records
http://dl.dropbox.com/u/3275573/blog/ActiveDirectory.zip- ADSI management of Active Directory contacts, Groups, Users, Recipient Policies, Accepted Domains objects (Exchange 2007)
http://dl.dropbox.com/u/3275573/blog/IISSiteID.zip - C# code on generating IIS SiteID