mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Module win_domain_computer fix delete computer with child (#44500)
* Module win_domain_computer fix delete computer with child * add changelog fragment
This commit is contained in:
committed by
Jordan Borean
parent
fadf8a2d09
commit
af49627a08
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user