|
if ($access.IsInherited -eq $false) |
By adding the $access.IsInherited -eq $false check to the Get-TargetResource function, the resource is unable to validate that the ADObject has permissions from an upstream source.
This results in a failed test, even if the object has the correct permissions via inheritance.