Skip to content

Commit 237d426

Browse files
authored
Merge pull request #11054 from MicrosoftDocs/chrisda
Update exchange-online-powershell-v2.md
2 parents b43951a + 7430a31 commit 237d426

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

exchange/docs-conceptual/exchange-online-powershell-v2.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,28 @@ Version 3.0.0 or later is known as the EXO V3 module. The EXO V3 module improves
116116

117117
- Connections in REST API mode have a dependency on the PowerShellGet module.
118118

119+
- Cmdlets backed by the REST API have a 15 minute timeout, which can affect bulk operations. For example, the following **Update-DistributionGroupMember** command to update 7000 members of a distribution group will likely time out:
120+
121+
```powershell
122+
$Members = @("member1","member2",...,"member7000")
123+
124+
Update-DistributionGroupMember -Identity DG01 -Members $Members
125+
```
126+
127+
Instead, use the **Update-DistributionGroupMember** command to update fewer members, and then add the remaining members individually using an **Add-DistributionGroupMember** command. For example:
128+
129+
```powershell
130+
Update-DistributionGroupMember -Identity DG01 -Members $Members[0..3499]
131+
132+
$Remaining = $Members[-3500..-1]
133+
134+
foreach ($Member in $Remaining)
135+
136+
{
137+
Add-DistributionGroupMember -Identity DG01 -Member $Member
138+
}
139+
```
140+
119141
For additional information about what's new in the EXO V3 module, see the [Release notes](#release-notes) section later in this article.
120142

121143
## Report bugs and issues for the Exchange Online PowerShell module

0 commit comments

Comments
 (0)