Creating Multiple AD Users,mailbox, updating Attributes and member of Groups

Share Tweet Share Pin it

Powershell Script for Creating Multiple AD Users,mailbox,updating Attributes,email address and adding user to multiple security and distribution groups.

Exchange 2016 and Active directory does not goes well with new user account creation. you cannot duplicate or copy  a user account to replicate attributes for a new joiner account. The Only Option is to create the account manually and update it. It is easy to create single user but it becomes time consuming and extremely difficult for creating multiple user accounts without any error.

I decided to use Powershell script which can automate the process without much manual work. This script helps to create a user account, email address, update the attributes and add user to member of security and distribution groups.

Download the Excel file, update the fields with necessary information and save to temp folder.

Copy the below powershell code to notepad and save it as .PS1 file.

# Creating Mailbox on Hybrid Model Exchange environment / updating Attributes / member of Groups

### Step 1 – User Creation

### Step 2 – user attributes update

Adding user to groups ( security group and distribution group)

Hope this post has helped you, please do comment below and share it.

Leave a Reply

CommentLuv badge

This site uses Akismet to reduce spam. Learn how your comment data is processed.