Skip to content

Commit b9ba0cc

Browse files
committed
fix: remove a comma and change formatting to improve readability
1 parent 2fef3bc commit b9ba0cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Invoke-ListMailboxes.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)