Category: Office 365

Powershell script to add users into AD Group for local and Office 365 setups.

Create users in a CSV File with UserName as first heading.

Import-module ActiveDirectory 
Import-CSV "C:\Users.csv" | % {Add-ADGroupMember -Identity NameOfGroup -Member $_.UserName} 

Adjust the red items to be where your file is

We needed a way of creating 200+ mailboxes in an Exchange 2010 – Office 365 Hybrid. The best way was to create the accounts locally, let the AD sync tool create the accounts into Office 365 then assign a licence to the users (I’m sure we could automate that too, but this will not be a huge issue)

So you need a few things to make it all work


View full article »