Powershell Task of the Day – Bulk Email Account Creation

A new office requires a large number of email accounts to be created. Fortunately, the users already had Active Directory accounts and they were in the same organisational unit. I used the following Powershell command to create the users:

get-user -OrganizationalUnit "domain.local/Company/State/OfficeLocation/Department/Team" | `
where-object {$_.RecipientType -eq "User"} | `
Enable-Mailbox -database "EXCH01StorageGroup1Database1"

Line 1 gets the users in the specified organisation unit, while line 2 narrows the results to just User objects. Line 3 performs the actual mailbox creation. 86 users were created with effectively one line of code.

Update on the armory viewer

I haven’t had the opportunity to do a lot of work on the Warcraft armory viewer (http://www.jpboyce.org/armory/) as I’ve been changing servers recently. I have added a couple tweaks. I’ve updated the link the site calls to the updated armory domain name. Also I’ve added an “Upgrade” link that uses the excellent Lightwindow javascript/widget/thingy by Kevin Miller. Any suggestions or comments, feel free to post them.

Armory Reader

The World of Warcraft armory (armory.worldofwarcraft.com) is a nice tool  or looking up characters. But I never liked the way it’s setup, where you have to mouse over every item slot to see the item details. Blizzard were nice enough to make the armory use XML. So I wrote a little ASP.NET application to take that XML and reformat the output in a more lightweight combined fashion. It’s available at www.jpboyce.org/armory

Still on the to do list:

  • Enchants and socketed gems on gear
  • More character details (resistances, etc)
  • Layout cleanup
Close Bitnami banner
Bitnami