File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ function Get-CIPPMFAStateReport {
2727 $AllMFAItems = Get-CIPPDbItem - TenantFilter ' allTenants' - Type ' MFAState'
2828 $Tenants = @ ($AllMFAItems | Where-Object { $_.RowKey -ne ' MFAState-Count' } | Select-Object - ExpandProperty PartitionKey - Unique)
2929
30+ $TenantList = Get-Tenants - IncludeErrors
31+ $Tenants = $Tenants | Where-Object { $TenantList.defaultDomainName -contains $_ }
32+
3033 $AllResults = [System.Collections.Generic.List [PSCustomObject ]]::new()
3134 foreach ($Tenant in $Tenants ) {
3235 try {
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ function Get-CIPPMailboxPermissionReport {
3939 $AllMailboxItems = Get-CIPPDbItem - TenantFilter ' allTenants' - Type ' Mailboxes'
4040 $Tenants = @ ($AllMailboxItems | Where-Object { $_.RowKey -ne ' Mailboxes-Count' } | Select-Object - ExpandProperty PartitionKey - Unique)
4141
42+ $TenantList = Get-Tenants - IncludeErrors
43+ $Tenants = $Tenants | Where-Object { $TenantList.defaultDomainName -contains $_ }
44+
4245 $AllResults = [System.Collections.Generic.List [PSCustomObject ]]::new()
4346 foreach ($Tenant in $Tenants ) {
4447 try {
You can’t perform that action at this time.
0 commit comments