Skip to content

Improve SIDHistory Cleanup by removing not working code#27

Merged
PrzemyslawKlys merged 2 commits intomasterfrom
ImproveSIDHistoryCleanup
Apr 1, 2025
Merged

Improve SIDHistory Cleanup by removing not working code#27
PrzemyslawKlys merged 2 commits intomasterfrom
ImproveSIDHistoryCleanup

Conversation

@PrzemyslawKlys
Copy link
Copy Markdown
Member

@PrzemyslawKlys PrzemyslawKlys commented Apr 1, 2025

This pull request includes a version update and a significant refactor to the Remove-ADSIDHistory function in the CleanupMonster module. The refactor simplifies the logic by removing the handling of processing all SIDs at once.

Version update:

Refactor:

  • Remove-ADSIDHistory.ps1: Removed the code block that processed all SIDs for an object at once (wasn't working), including the associated ShouldProcess checks and error handling. The function now only processes individual SIDs. [1] [2]

* Refactored the SID removal logic to process individual SIDs instead of all at once.
* Improved error handling and logging for SID removal actions.
* Enhanced user feedback for both successful and failed SID removals.
* Incremented the module version to reflect recent changes.
* Ensures compatibility with the latest features and fixes.
@PrzemyslawKlys PrzemyslawKlys merged commit b4b51d7 into master Apr 1, 2025
@PrzemyslawKlys PrzemyslawKlys deleted the ImproveSIDHistoryCleanup branch April 1, 2025 17:42
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.

1 participant