Creating Office 365 Groups with PowerShell


Create Office 365 Groups using PowerShell

In this post, I will show case the steps for how to create a Groups in Office 365. Office 365 Groups allows for ease of flexibility and collaboration between staff members.

More about Office 365 Groups can be found Here.

To get started a PowerShell session to Exchange Online needs to be established.

The following script can assist by connecting to Exchange Online quickly:

Now that a session to Exchange Online has been established, now we can go ahead and run the following cmdlet to create the new Group.

As you can see above the Group has been created, however we have not specified if it should be a Private or Public Group and by default the Group is created as a Public Group with the Owner as the admin user who created the Group and no Members, so let’s go ahead and change the Group AccessType and add additional Members to the Group.

To set the Group to Private the following cmdlet can be used.

So, the Group GlobalExSupport has been changed to a Private, now let’s go ahead and set and Add some Members to the newly created Group.

To add Members to the Group the following cmdlet and be used.

How do you change the Group Owner once a Group has been created already by another staff member?

To add an additional Owner to the Group, the following cmdlet can be used.

To list the Group Members the following cmdlet can be used.

To list the Group Owners the following cmdlet can be used.

To remove a Group Owner the following cmdlet can be used.

Now that we have looked at how to remove a Group Owner, let’s look at how to remove a Group Member as well.

To remove a Group Member the following cmdlet can be used.

To wrap it up, we have gone through the creation and modification of an Office 365 Group. Hope it was beneficial for some.


Sharing is caring!

Previous articleWhat is Office 365 Groups
Next articleError Connecting to Exchange Online PowerShell with MFA enabled.
About Me ? I Guess i would start by saying i am a family guys and full time SysAdmin and Tech Junky. This Blog is my first attempt to share information about daily issues i come across as a SysAdmin as well as some new deployments i am part of. Topics that i will cover will mostly be about Office 365,Windows,Exchange as well as Active Directory. I hope some of my Blog posts helps someone #LiveLongAndBeLazy #Exchange #Office 365 #ActiveDirectory #Hyper-V



Please enter your comment!
Please enter your name here