File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function Invoke-CIPPStandardTeamsFederationConfiguration {
3838
3939 $AllowAllKnownDomains = New-CsEdgeAllowAllKnownDomains
4040 $DomainControl = $Settings.DomainControl.value ?? $Settings.DomainControl
41- $AllowedDomainsAsAList = $null
41+ $AllowedDomainsAsAList = @ ()
4242 switch ($DomainControl ) {
4343 ' AllowAllExternal' {
4444 $AllowFederatedUsers = $true
@@ -77,7 +77,7 @@ function Invoke-CIPPStandardTeamsFederationConfiguration {
7777 $CurrentAllowedDomains = $CurrentState.AllowedDomains
7878 if ($CurrentAllowedDomains.GetType ().Name -eq ' PSObject' ) {
7979 $CurrentAllowedDomains = $CurrentAllowedDomains.Domain | Sort-Object
80- $DomainList = $CurrentAllowedDomains | Sort-Object
80+ $DomainList = ( $CurrentAllowedDomains | Sort-Object ) ?? @ ()
8181 $AllowedDomainsMatches = -not (Compare-Object - ReferenceObject $AllowedDomainsAsAList - DifferenceObject $DomainList )
8282 } elseif ($CurrentAllowedDomains.GetType ().Name -eq ' Deserialized.Microsoft.Rtc.Management.WritableConfig.Settings.Edge.AllowAllKnownDomains' ) {
8383 $CurrentAllowedDomains = $CurrentAllowedDomains.ToString ()
You can’t perform that action at this time.
0 commit comments