Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

CortexWindowsRPC fails to delete AD computers with child objects and fails to report error #260

Open
claytonpeters opened this issue Mar 22, 2019 · 1 comment

Comments

@claytonpeters
Copy link
Contributor

When deleting an AD Computer object that has child objects under it, CortexWindowsRPC is logging the error: Remove-ADComputer : The directory service can perform the requested operation only on a leaf object

This could be resolved by perhaps using: Get-ADComputer -Identity "whatever" | Remove-ADObject -Recursive

Additionally, the Cortex task is reporting that this step in the decommission process is succeeding even though it isn't.

@claytonpeters claytonpeters changed the title CortexWindowsRPC fails to delete AD compueters with child objects and fails to report error CortexWindowsRPC fails to delete AD computers with child objects and fails to report error Mar 22, 2019
@claytonpeters
Copy link
Contributor Author

As a safer option, and to prevent orphaned DFS objects, perhaps the "check" stage of the decom could check for nested objects and report on them before the decom happens saying that there are other things to tidy up. This would prevent us needing to do the more risky recursive delete, and prevent orphaned DFS / other objects.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant