From a1c60a83bd8d080d128daaab55fed761e7b24b85 Mon Sep 17 00:00:00 2001 From: KelvinTegelaar Date: Fri, 13 Oct 2023 18:41:43 +0200 Subject: [PATCH] one more add --- Modules/CIPPCore/Public/Set-CIPPCPVConsent.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/CIPPCore/Public/Set-CIPPCPVConsent.ps1 b/Modules/CIPPCore/Public/Set-CIPPCPVConsent.ps1 index 06c813ebb712..4a44db86a958 100644 --- a/Modules/CIPPCore/Public/Set-CIPPCPVConsent.ps1 +++ b/Modules/CIPPCore/Public/Set-CIPPCPVConsent.ps1 @@ -6,7 +6,7 @@ function Set-CIPPCPVConsent { $ExecutingUser ) $Results = [System.Collections.ArrayList]@() - $Tenant = Get-Tenants | Where-Object -Property defaultDomainName -EQ $Tenantfilter + $Tenant = Get-Tenants -IncludeAll -IncludeErrors | Where-Object -Property defaultDomainName -EQ $Tenantfilter $TenantName = $Tenant.defaultDomainName $TenantFilter = $Tenant.customerId