Adding members to unified group via csv

Make sure you Connected to Exchange Online PowerShell

Connect-ExchangeOnline

To check Unified Group Members –

Get-UnifiedGroupLinks groupname -LinkType member

Add Members to Unified Group via CSV –

Import-Csv .\usersupn.csv | ForEach-Object{Add-UnifiedGroupLinks -Identity migrate -LinkType members -Links $_.upn}

CSV Sample – Double quotes is very important otherwise you many see undesirable adds.

You can always use -WhatIf if you want to verify before applying

Import-Csv .\usersupn.csv | ForEach-Object{Add-UnifiedGroupLinks -Identity migrate -LinkType members -Links $_.upn -Whatif}

 

About Satheshwaran Manoharan

Satheshwaran Manoharan is an Microsoft Office Server and Services MVP , Publisher of Azure365pro.com. Specialized in Office365 / Microsoft Exchange / Virtualization , Sathesh is an Messaging Expert supporting/Designing/Deploying many medium size businesses to large enterprises when it comes to Corporate messaging and Virtualization Infrastructure

Check Also

Adding [EXTERNAL] for emails with Auto Remove on Reply

In the world of spam and the number of phishing emails is increasing day by …

One comment

  1. I am so grateful for your blog article. Thanks Again. Great. Edy Immanuel Hoyt

Leave a Reply

Your email address will not be published.