Skip to content

Commit 746ad13

Browse files
include errors hotfix
1 parent b392ea9 commit 746ad13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GraphHelper.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ function Remove-CIPPCache {
552552
function New-ExoRequest ($tenantid, $cmdlet, $cmdParams, $useSystemMailbox, $Anchor, $NoAuthCheck) {
553553
if ((Get-AuthorisedRequest -TenantID $tenantid) -or $NoAuthCheck -eq $True) {
554554
$token = Get-ClassicAPIToken -resource 'https://outlook.office365.com' -Tenantid $tenantid
555-
$tenant = (get-tenants | Where-Object -Property defaultDomainName -EQ $tenantid).customerId
555+
$tenant = (get-tenants -IncludeErrors | Where-Object -Property defaultDomainName -EQ $tenantid).customerId
556556
if ($cmdParams) {
557557
$Params = $cmdParams
558558
}

0 commit comments

Comments
 (0)