Skip to content

Commit

Permalink
Remove GroupTypes defaulting to Unified - microsoft#3073
Browse files Browse the repository at this point in the history
  • Loading branch information
Borgquite authored Mar 29, 2023
1 parent 806c726 commit 84a0a13
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Get-TargetResource

[Parameter()]
[System.String[]]
$GroupTypes = @('Unified'),
$GroupTypes,

[Parameter()]
[System.String]
Expand Down Expand Up @@ -402,10 +402,6 @@ function Set-TargetResource
Write-Verbose -Message 'Cannot set mailenabled to false if GroupTypes is set to Unified when creating group.'
throw 'Cannot set mailenabled to false if GroupTypes is set to Unified when creating a group.'
}
if (-not $GroupTypes -and $currentParameters.GroupTypes -eq $null)
{
$currentParameters.Add('GroupTypes', @('Unified'))
}

$currentValuesToCheck = @()
if ($currentGroup.AssignedLicenses.Length -gt 0)
Expand Down

0 comments on commit 84a0a13

Please sign in to comment.