Jump to content

Recommended Posts

Posted

Hi,

I'm looking for a tool (preferably Powershell) to bulk create our AD accounts for our new intake. Could anyone share some ideas with me?

 

Thanks

Posted

I have never used Salamander but everyone on here says it a nice solution, We use MIM its free with our licencing from MS and this brings a whole host of other options for identity management.

 

I have also in the past use PowerShell to do the bit from MIS to AD, personally if i was not using either of the above I would say use PowerShell to connect to your MIS solutions DB directly rather than exporting out to a file.

Posted

I create our first intake using Powershell, each school is different but you'll need to plan out what you do with a user and adjust the script accordingly. With the first intake, I import a CSV and then run a ForEach loop to create the user in each line.

There is definitely more efficient ways to do this, but I wrote it how it appeared in my brain so...

Script workflow

 

Connect to Exchange, MS Online (MFA)

Set up initial variables

Start ForEach loop{

Import names from CSV, remove any superfluous spaces

Create username (Ours are in a weird format so this does some checking to make sure it's unique, if not it increments the number at the end)

Set password, additional variables

Create AD User

Add AD user to groups

Set AD Attributes

Create folder & apply permissions as necessary (Have to check the user had replicated to all DCs before doing this as otherwise it can error applying permissions. Would be way more efficient to do this step after the fact for each user tbh but I can't be bothered to change it)

Output to CSV}

 

Sync directory to O365

Sleep 2 mins

Start ForEach Loop{

Check if user has been synced to O365

Set MSOL location

Set MSOL licenses

}

Close PS Session

 

Sync to G Suite

I think it's best if you create the script yourself and then ask if you get stuck with any points if I'm honest, you'll be able to more effectively modify it for your school and processes.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...