Skip to content

Commit

Permalink
Update MSFT_EXOPlace.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Oct 3, 2023
1 parent ce9f4fd commit a67c254
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -368,8 +368,9 @@ function Set-TargetResource
$PSBoundParameters.Remove('CertificatePassword') | Out-Null
$PSBoundParameters.Remove('ManagedIdentity') | Out-Null

if ($null -eq $ParentId)
if ([System.String]::IsNullOrEmpty($ParentId) -and $null -ne $ParentType)
{
Write-Verbose -Message 'ParentId is $null, removing ParentType.'
$PSBoundParameters.Remove('ParentType') | Out-Null
}
Set-Place @PSBoundParameters
Expand Down

0 comments on commit a67c254

Please sign in to comment.