Module win_domain_computer fix delete computer with child

pull/44500/head
Daniel Sánchez Fábregas 6 years ago
parent 77bff99f3c
commit bbecdbc042

@ -129,8 +129,9 @@ Function Add-ConstructedState($desired_state) {
# ------------------------------------------------------------------------------
Function Remove-ConstructedState($initial_state) {
Try {
Remove-ADComputer `
-Identity $initial_state.name `
Get-ADComputer $initial_state.name `
| Remove-ADObject `
-Recursive `
-Confirm:$False `
-WhatIf:$check_mode
} Catch {

Loading…
Cancel
Save