Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix up protect from accidental deletion on new objects #50

Merged
merged 1 commit into from
Jun 28, 2023

Conversation

jborean93
Copy link
Collaborator

SUMMARY

The code for handling protect_from_deletion when creating new objects would only work if the cmdlet used contained the -ProtectedFromAccidentalDeletion parameter. Cmdlets like New-ADUser, New-ADGroup, New-ADComputer do not have this parameter so handling for this needed to happen after the object is created with the Set-ADObject cmdlet.

Fixes: #47

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

module_utils/_ADObject.psm1

@softwarefactory-project-zuul
Copy link

@jborean93 jborean93 force-pushed the deletion-protection branch from a921ad3 to 52431b3 Compare June 28, 2023 05:07
@softwarefactory-project-zuul
Copy link

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

Successfully merging this pull request may close these issues.

microsoft.ad.computer - Parameter "ProtectedFromAccidentalDeletion" cannot be found
1 participant