(Exchange Online) Using Powershell to Add Multiple Users in Office 365 Distribution Group

preview_player
Показать описание
Dear Friends: Welcome to My Channel. I will show Using Powershell to add multiple users in Office 365 Distribution Group. Please note the 2FA is enabled for my user and the procedure is a little different than basic authentication.

This Video contains instructions for Using Powershell to add multiple users in Office 365 Distribution Group

The Exchange Online PowerShell module uses modern authentication for connecting to all Exchange-related PowerShell environments in Microsoft 365: Exchange Online PowerShell, Security & Compliance PowerShell, and standalone Exchange Online Protection (EOP) PowerShell.


###### How to Add Multiple Users to Distribution Group #######

Set-ExecutionPolicy -ExecutionPolicy Unrestricted

Import-Module ExchangeOnlineManagement

Connect-ExchangeOnline

######## Add Multiple Users in Distribution Group ########

###### To View Distribution Group Members details using Powershell ######

Get-distributiongroupmember -identity "Tech Spot" | fl PrimarySmtpAddress

######## Remove Single User in Distribution Group ########

Remove-DistributionGroupMember "TECH SPOT" -Member “kumar surya”

####### Remove Multiple Users in Distribution Group #########

#powershell #microsoft365 #exchange
Рекомендации по теме
Комментарии
Автор

Excellent. It worked perfectly. Thank you so much 'Tech Review'

imtithewave
Автор

Hello. Always saying "Cannot validate argument on parameter 'Member'. The argument is null"

fangas
Автор

can we also do this in Mail-Enabled security group and Resource mailbox?

kimitsuki
Автор

Cannot validate argument on parameter 'Member'!!!

daniel_rojass