PowerShell and CCNet Email Configuration

I needed to fill in the email addresses for everyone using a factory.  I did not want to figure out everyone’s email address and create the email configuration by hand so I went looking for some type of Active Directory tool to help me get the job done.  I saw in the result that Google gave me a hit on PowerShell.  I have always wanted to learn some PowerShell, this was just what I needed.  So I installed PowerShell and the AD cmdlets.

Below is the command I used, all our devs are in a group.

get-QADGroupMember DevGroup | ForEach-object {’<user name=”‘ + $_.LogonName + ‘” group=”developer” address=”‘ + $_.Email + ‘”/>’}

I copied and pasted the output into the ccnetproject.xml.

kick it on DotNetKicks.com