xADOrganizationalUnit: Unhandled Exception when the Path Property specifies a Non-Existing Path #408
Labels
bug
The issue is a bug.
good first issue
The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
Details of the scenario you tried and the problem that is occurring
An unhandled exception occurs when deploying an
xADOrganizationalUnit
resource that specifies aPath
property that doesn't exists within Active Directory. It is not clear from the error that it is the path not existing that has caused the exception.Verbose logs showing the problem
Suggested solution to the issue
Catch this error from the
Get-ADOrganizationalUnit
function call inGet-TargetResource
and throw a more detailed exception.The DSC configuration that is used to reproduce the issue (as detailed as possible)
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
The text was updated successfully, but these errors were encountered: