ADComputer: Ensure=Absent does not recursively remove the computer object, fails with, "can perform the requested operation only on a leaf object." #525
Labels
enhancement
The issue is an enhancement request.
help wanted
The issue is up for grabs for anyone in the community.
Details of the scenario you tried and the problem that is occurring
When using Ensure=Absent on ADComputer, if the computer object is not a leaf object, the delete fails.
Verbose logs showing the problem
I'm running this in Ansible so the error message looks different, but should be the same message:
Suggested solution to the issue
Add -Recurse to the Remove-ADComputer command in MSFT_ADComputer.psm1. Does this have any undesired effect?
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Ansible
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)
4.2.0.0
The text was updated successfully, but these errors were encountered: