Skip to content

Commit 574f7c1

Browse files
committed
Update Set-MailUser.md
Edits, parameters in the new ExcludeFromAllHolds parameter set to match observed reality, and added MaxReceiveSize and MaxSendSize to all parameter sets per observed reality.
1 parent 8f6de54 commit 574f7c1

File tree

1 file changed

+40
-24
lines changed

1 file changed

+40
-24
lines changed

exchange/exchange-ps/ExchangePowerShell/Set-MailUser.md

Lines changed: 40 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For information about the parameter sets in the Syntax section below, see [Excha
2121

2222
## SYNTAX
2323

24-
### Default
24+
### Identity (Default)
2525
```
2626
Set-MailUser [-Identity] <MailUserIdParameter>
2727
[-AcceptMessagesOnlyFrom <MultiValuedProperty>]
@@ -149,6 +149,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-EnableLitigationHoldForMigratio
149149
[-MailTip <String>]
150150
[-MailTipTranslations <MultiValuedProperty>]
151151
[-MailboxRegion <String>]
152+
[-MaxReceiveSize <MultiValuedProperty>]
153+
[-MaxSendSize <MultiValuedProperty>]
152154
[-MessageBodyFormat <MessageBodyFormat>]
153155
[-MessageFormat <MessageFormat>]
154156
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -188,7 +190,6 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-ExcludeFromAllHolds]
188190
[-ArchiveGuid <Guid>]
189191
[-BypassModerationFromSendersOrMembers <MultiValuedProperty>]
190192
[-Confirm]
191-
[-CreateDTMFMap <Boolean>]
192193
[-CustomAttribute1 <String>]
193194
[-CustomAttribute10 <String>]
194195
[-CustomAttribute11 <String>]
@@ -225,6 +226,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-ExcludeFromAllHolds]
225226
[-MailTip <String>]
226227
[-MailTipTranslations <MultiValuedProperty>]
227228
[-MailboxRegion <String>]
229+
[-MaxReceiveSize <MultiValuedProperty>]
230+
[-MaxSendSize <MultiValuedProperty>]
228231
[-MessageBodyFormat <MessageBodyFormat>]
229232
[-MessageFormat <MessageFormat>]
230233
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -240,11 +243,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-ExcludeFromAllHolds]
240243
[-RemoveMailboxProvisioningConstraint]
241244
[-RequireSenderAuthenticationEnabled <Boolean>]
242245
[-ResetPasswordOnNextLogon <Boolean>]
243-
[-SecondaryAddress <String>]
244-
[-SecondaryDialPlan <UMDialPlanIdParameter>]
245246
[-SendModerationNotifications <TransportModerationNotificationFlags>]
246247
[-SimpleDisplayName <String>]
247-
[-UMDtmfMap <MultiValuedProperty>]
248248
[-UseMapiRichTextFormat <UseMapiRichTextFormat>]
249249
[-UsePreferMessageFormat <Boolean>]
250250
[-UserCertificate <MultiValuedProperty>]
@@ -301,6 +301,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-ExcludeFromAllOrgHolds]
301301
[-MailTip <String>]
302302
[-MailTipTranslations <MultiValuedProperty>]
303303
[-MailboxRegion <String>]
304+
[-MaxReceiveSize <MultiValuedProperty>]
305+
[-MaxSendSize <MultiValuedProperty>]
304306
[-MessageBodyFormat <MessageBodyFormat>]
305307
[-MessageFormat <MessageFormat>]
306308
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -377,6 +379,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-ExcludeFromOrgHolds <String[]>]
377379
[-MailboxRegion <String>]
378380
[-MailTip <String>]
379381
[-MailTipTranslations <MultiValuedProperty>]
382+
[-MaxReceiveSize <MultiValuedProperty>]
383+
[-MaxSendSize <MultiValuedProperty>]
380384
[-MessageBodyFormat <MessageBodyFormat>]
381385
[-MessageFormat <MessageFormat>]
382386
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -453,6 +457,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-RecalculateInactiveMailUser]
453457
[-MailboxRegion <String>]
454458
[-MailTip <String>]
455459
[-MailTipTranslations <MultiValuedProperty>]
460+
[-MaxReceiveSize <MultiValuedProperty>]
461+
[-MaxSendSize <MultiValuedProperty>]
456462
[-MessageBodyFormat <MessageBodyFormat>]
457463
[-MessageFormat <MessageFormat>]
458464
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -529,6 +535,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-RemoveComplianceTagHoldApplied]
529535
[-MailboxRegion <String>]
530536
[-MailTip <String>]
531537
[-MailTipTranslations <MultiValuedProperty>]
538+
[-MaxReceiveSize <MultiValuedProperty>]
539+
[-MaxSendSize <MultiValuedProperty>]
532540
[-MessageBodyFormat <MessageBodyFormat>]
533541
[-MessageFormat <MessageFormat>]
534542
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -605,6 +613,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-RemoveDelayHoldApplied]
605613
[-MailTip <String>]
606614
[-MailTipTranslations <MultiValuedProperty>]
607615
[-MailboxRegion <String>]
616+
[-MaxReceiveSize <MultiValuedProperty>]
617+
[-MaxSendSize <MultiValuedProperty>]
608618
[-MessageBodyFormat <MessageBodyFormat>]
609619
[-MessageFormat <MessageFormat>]
610620
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -681,6 +691,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-RemoveDelayReleaseHoldApplied]
681691
[-MailTip <String>]
682692
[-MailTipTranslations <MultiValuedProperty>]
683693
[-MailboxRegion <String>]
694+
[-MaxReceiveSize <MultiValuedProperty>]
695+
[-MaxSendSize <MultiValuedProperty>]
684696
[-MessageBodyFormat <MessageBodyFormat>]
685697
[-MessageFormat <MessageFormat>]
686698
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -756,6 +768,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-RemoveDisabledArchive]
756768
[-MailboxRegion <String>]
757769
[-MailTip <String>]
758770
[-MailTipTranslations <MultiValuedProperty>]
771+
[-MaxReceiveSize <MultiValuedProperty>]
772+
[-MaxSendSize <MultiValuedProperty>]
759773
[-MessageBodyFormat <MessageBodyFormat>]
760774
[-MessageFormat <MessageFormat>]
761775
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -830,6 +844,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-RemoveLitigationHoldEnabled]
830844
[-MailTip <String>]
831845
[-MailTipTranslations <MultiValuedProperty>]
832846
[-MailboxRegion <String>]
847+
[-MaxReceiveSize <MultiValuedProperty>]
848+
[-MaxSendSize <MultiValuedProperty>]
833849
[-MessageBodyFormat <MessageBodyFormat>]
834850
[-MessageFormat <MessageFormat>]
835851
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -906,6 +922,8 @@ Set-MailUser [-Identity] <MailUserIdParameter> [-RemoveOrphanedHolds <String[]>]
906922
[-MailTip <String>]
907923
[-MailTipTranslations <MultiValuedProperty>]
908924
[-MailboxRegion <String>]
925+
[-MaxReceiveSize <MultiValuedProperty>]
926+
[-MaxSendSize <MultiValuedProperty>]
909927
[-MessageBodyFormat <MessageBodyFormat>]
910928
[-MessageFormat <MessageFormat>]
911929
[-MicrosoftOnlineServicesID <SmtpAddress>]
@@ -1026,7 +1044,7 @@ This example modifies the external email address for the mail user named John Wo
10261044
Set-MailUser -Identity "John Woods" -ExcludeFromAllHolds
10271045
```
10281046

1029-
This example excludes the mail user from applicable retention and app retention policies. This includes organization-level retention policies, user-level retention policies, compliance tag holds, delay holds, and delay release holds. The switch does not remove eDiscovery holds, litigation holds, or restrictive retention policies.
1047+
This example excludes the mail user from applicable retention and app retention policies. These policies includes organization-level retention policies, user-level retention policies, compliance tag holds, delay holds, and delay release holds. The switch doesn't remove eDiscovery holds, litigation holds, or restrictive retention policies.
10301048

10311049
## PARAMETERS
10321050

@@ -1219,7 +1237,7 @@ The ArbitrationMailbox parameter specifies the arbitration mailbox that's used t
12191237

12201238
```yaml
12211239
Type: MailboxIdParameter
1222-
Parameter Sets: Default
1240+
Parameter Sets: Identity
12231241
Aliases:
12241242
12251243
Required: False
@@ -1257,7 +1275,7 @@ This parameter is reserved for internal Microsoft use.
12571275

12581276
```yaml
12591277
Type: MultiValuedProperty
1260-
Parameter Sets: Default
1278+
Parameter Sets: Identity
12611279
Aliases:
12621280
12631281
Required: False
@@ -1668,7 +1686,7 @@ The DomainController parameter specifies the domain controller that's used by th
16681686

16691687
```yaml
16701688
Type: Fqdn
1671-
Parameter Sets: Default
1689+
Parameter Sets: Identity
16721690
Aliases:
16731691
16741692
Required: False
@@ -1730,7 +1748,7 @@ The EmailAddressPolicyEnabled parameter specifies whether to apply email address
17301748

17311749
```yaml
17321750
Type: Boolean
1733-
Parameter Sets: Default
1751+
Parameter Sets: Identity
17341752
Aliases:
17351753
17361754
Required: False
@@ -1786,9 +1804,7 @@ Accept wildcard characters: False
17861804

17871805
This parameter is available only in the cloud-based service.
17881806

1789-
The ExcludeFromAllHolds switch enables deletion of inactive mail users by removing certain types of holds while preserving compliance requirements. You don't need to specify a value with this switch.
1790-
1791-
This switch is used with soft-deleted or inactive mail users.
1807+
The ExcludeFromAllHolds switch enables the deletion of soft deleted or inactive mail users by removing certain types of holds while preserving compliance requirements. You don't need to specify a value with this switch.
17921808

17931809
This switch removes the following types of holds:
17941810

@@ -2140,7 +2156,7 @@ This switch enables the command to access Active Directory objects that aren't c
21402156

21412157
```yaml
21422158
Type: SwitchParameter
2143-
Parameter Sets: Default
2159+
Parameter Sets: Identity
21442160
Aliases:
21452161
21462162
Required: False
@@ -2308,7 +2324,7 @@ Base64 encoding increases the size of messages by approximately 33%, so specify
23082324

23092325
```yaml
23102326
Type: Unlimited
2311-
Parameter Sets: Default
2327+
Parameter Sets: (All)
23122328
Aliases:
23132329
23142330
Required: False
@@ -2339,7 +2355,7 @@ Base64 encoding increases the size of messages by approximately 33%, so specify
23392355

23402356
```yaml
23412357
Type: Unlimited
2342-
Parameter Sets: Default
2358+
Parameter Sets: (All)
23432359
Aliases:
23442360
23452361
Required: False
@@ -2616,7 +2632,7 @@ The RecoverableItemsQuota value must be greater than or equal to the Recoverable
26162632

26172633
```yaml
26182634
Type: Unlimited
2619-
Parameter Sets: Default
2635+
Parameter Sets: Identity
26202636
Aliases:
26212637
26222638
Required: False
@@ -2650,7 +2666,7 @@ The RecoverableItemsQuota value must be greater than or equal to the Recoverable
26502666

26512667
```yaml
26522668
Type: Unlimited
2653-
Parameter Sets: Default
2669+
Parameter Sets: Identity
26542670
Aliases:
26552671
26562672
Required: False
@@ -2921,7 +2937,7 @@ You can add a picture to a mail user by using the Import-RecipientDataProperty c
29212937

29222938
```yaml
29232939
Type: SwitchParameter
2924-
Parameter Sets: Default
2940+
Parameter Sets: Identity
29252941
Aliases:
29262942
29272943
Required: False
@@ -2943,7 +2959,7 @@ You can add a sound file to a mail user by using the Import-RecipientDataPropert
29432959

29442960
```yaml
29452961
Type: SwitchParameter
2946-
Parameter Sets: Default
2962+
Parameter Sets: Identity
29472963
Aliases:
29482964
29492965
Required: False
@@ -3009,7 +3025,7 @@ The SamAccountName parameter (also known as the pre-Windows 2000 user account or
30093025

30103026
```yaml
30113027
Type: String
3012-
Parameter Sets: Default
3028+
Parameter Sets: Identity
30133029
Aliases:
30143030
30153031
Required: False
@@ -3117,7 +3133,7 @@ This parameter is reserved for internal Microsoft use.
31173133

31183134
```yaml
31193135
Type: SwitchParameter
3120-
Parameter Sets: Default
3136+
Parameter Sets: Identity
31213137
Aliases:
31223138
31233139
Required: False
@@ -3149,7 +3165,7 @@ If you use this syntax, you don't need to specify all of the DTMF map values, an
31493165

31503166
```yaml
31513167
Type: MultiValuedProperty
3152-
Parameter Sets: Default
3168+
Parameter Sets: Identity
31533169
Aliases:
31543170
31553171
Required: False
@@ -3252,7 +3268,7 @@ The UserPrincipalName parameter specifies the logon name for the user account. T
32523268

32533269
```yaml
32543270
Type: String
3255-
Parameter Sets: Default
3271+
Parameter Sets: Identity
32563272
Aliases:
32573273
32583274
Required: False

0 commit comments

Comments
 (0)