You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write-LogMessage-API 'Standards'-Tenant $Tenant-Message "Could not get the SendReceiveLimitTenant state for $Tenant. Error: $($ErrorMessage.NormalizedError)"-Sev Error -LogData $ErrorMessage
if ($PlanMaxSendSize-ne$MaxSendSize-or$PlanMaxReceiveSize-ne$MaxReceiveSize) {
@@ -83,8 +88,8 @@ function Invoke-CIPPStandardSendReceiveLimitTenant {
83
88
}
84
89
Write-LogMessage-API 'Standards'-tenant $tenant-message "Successfully set the tenant send($($Settings.SendLimit)MB) and receive($($Settings.ReceiveLimit)MB) limits"-sev Info
Write-LogMessage-API 'Standards'-tenant $tenant-message "Failed to set the tenant send and receive limits. Error: $ErrorMessage"-sev Error
91
+
$ErrorMessage=Get-CippException-Exception$_
92
+
Write-LogMessage-API 'Standards'-tenant $tenant-message "Failed to set the tenant send and receive limits. Error: $($ErrorMessage.NormalizedError)"-sev Error-LogData $ErrorMessage
88
93
}
89
94
} else {
90
95
Write-LogMessage-API 'Standards'-tenant $tenant-message "The tenant send($($Settings.SendLimit)MB) and receive($($Settings.ReceiveLimit)MB) limits are already set correctly"-sev Info
0 commit comments