Sunday, July 17, 2011

Managing Microsoft IIS, Active Directory and DNS from .net

Update 7/17/2011:  New links

This code was one of my first coding project from 11-10-2006

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! - ADSI management of IIS 6 Sites and AppPools - WMI management of Microsoft DNS Zones and Records ADSI management of Active Directory contacts, Groups, Users, Recipient Policies, Accepted Domains objects (Exchange 2007) - C# code on generating IIS SiteID


  1. Hi Mike, you have already written, what I am searching for a long time... but your D/L Links are broken.

    If you have already the sample then i would like to receive it via mail (

    Best Regards

  2. Mike, we need you! Your DNS zip file only contains the project files, but no actual .vb files or source code files.....

  3. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.
    or Javascript Training in Chennai. Nowadays JavaScript has tons of job opportunities on various vertical industry.


Enumerating TFS Permissions for items within the TPC for audit and logging

Below is a powershell cmdlet that I threw together to enumerate data out of our TFS instance.  This is used to keep track of permissions in ...