Skip to content

Commit 525703f

Browse files
authored
Merge pull request #221 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents accd645 + f3d5cd0 commit 525703f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Modules/CIPPCore/Private/Get-ExoOnlineStringBytes.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function Get-ExoOnlineStringBytes {
44
# This exists because various exo cmdlets like to return a human readable string like "3.322 KB (3,402 bytes)" but not the raw bytes value
55

66
if ($SizeString -match '\(([0-9,]+) bytes\)') {
7-
return [int]($Matches[1] -replace ',','')
7+
return [int64]($Matches[1] -replace ',','')
88
}
99

1010
return 0

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ 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' } },
@@ -76,7 +76,7 @@ Function Invoke-ListMailboxes {
7676
@{ Name = 'LicensedForLitigationHold'; Expression = { ($_.PersistedCapabilities -contains 'BPOS_S_DlpAddOn' -or $_.PersistedCapabilities -contains 'BPOS_S_Enterprise') } },
7777
ComplianceTagHoldApplied,
7878
RetentionHoldEnabled,
79-
InPlaceHolds,
79+
InPlaceHolds
8080

8181
$StatusCode = [HttpStatusCode]::OK
8282
} catch {

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-ListUserMailboxDetails.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function Invoke-ListUserMailboxDetails {
164164
$ProhibitSendQuotaString = $MailboxDetailedRequest.ProhibitSendQuota -split ' '
165165
$ProhibitSendReceiveQuotaString = $MailboxDetailedRequest.ProhibitSendReceiveQuota -split ' '
166166
$TotalItemSizeString = $StatsRequest.TotalItemSize -split ' '
167-
$TotalArchiveItemSizeString = Get-ExoOnlineStringBytes -SizeString $ArchiveSizeRequest.TotalItemSize.Value
167+
$TotalArchiveItemSizeString = (Get-ExoOnlineStringBytes -SizeString $ArchiveSizeRequest.TotalItemSize) / 1GB
168168

169169
$ProhibitSendQuota = try { [math]::Round([float]($ProhibitSendQuotaString[0]), 2) } catch { 0 }
170170
$ProhibitSendReceiveQuota = try { [math]::Round([float]($ProhibitSendReceiveQuotaString[0]), 2) } catch { 0 }

0 commit comments

Comments
 (0)