@@ -56,15 +56,15 @@ Function Invoke-ListMailboxes {
5656 }
5757 }
5858
59- $GraphRequest = (New-ExoRequest @ExoRequest ) | Select-Object id, ExchangeGuid, ArchiveGuid, WhenSoftDeleted, @ { Name = ' UPN ' ; Expression = { $_ . ' UserPrincipalName ' } } ,
60-
59+ $GraphRequest = (New-ExoRequest @ExoRequest ) | Select-Object id, ExchangeGuid, ArchiveGuid, WhenSoftDeleted,
60+ @ { Name = ' UPN ' ; Expression = { $_ . ' UserPrincipalName ' } } ,
6161 @ { Name = ' displayName' ; Expression = { $_ .' DisplayName' } },
6262 @ { Name = ' primarySmtpAddress' ; Expression = { $_ .' PrimarySMTPAddress' } },
6363 @ { Name = ' recipientType' ; Expression = { $_ .' RecipientType' } },
6464 @ { Name = ' recipientTypeDetails' ; Expression = { $_ .' RecipientTypeDetails' } },
6565 @ { Name = ' AdditionalEmailAddresses' ; Expression = { ($_ .' EmailAddresses' | Where-Object { $_ -clike ' smtp:*' }).Replace(' smtp:' , ' ' ) -join ' , ' } },
66- @ {Name = ' ForwardingSmtpAddress' ; Expression = { $_ .' ForwardingSmtpAddress' -replace ' smtp:' , ' ' } },
67- @ {Name = ' InternalForwardingAddress' ; Expression = { $_ .' ForwardingAddress' } },
66+ @ { Name = ' ForwardingSmtpAddress' ; Expression = { $_ .' ForwardingSmtpAddress' -replace ' smtp:' , ' ' } },
67+ @ { Name = ' InternalForwardingAddress' ; Expression = { $_ .' ForwardingAddress' } },
6868 DeliverToMailboxAndForward,
6969 HiddenFromAddressListsEnabled,
7070 ExternalDirectoryObjectId,
@@ -75,7 +75,7 @@ Function Invoke-ListMailboxes {
7575 LitigationHoldDuration,
7676 @ { Name = ' LicensedForLitigationHold' ; Expression = { ($_.PersistedCapabilities -contains ' BPOS_S_DlpAddOn' -or $_.PersistedCapabilities -contains ' BPOS_S_Enterprise' ) } },
7777 ComplianceTagHoldApplied,
78- RetentionHoldEnabled,
78+ RetentionHoldEnabled
7979
8080 $StatusCode = [HttpStatusCode ]::OK
8181 } catch {
0 commit comments