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

Get-ADGroup -Properties Member instead of Get-ADGroupMember to in AD rolemodel script #17

Open
rschouten97 opened this issue Nov 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@rschouten97
Copy link
Collaborator

Get-ADGroupMember fails with "an unspecified error" when it contains deleted users from foreign domains.
As this does give insight to the groups with deleted users from foreign domains I would like to keep this.
But when the error occures, log this and retry with Get-ADGroup -Properties Member instead.

Or perhaps it is best to switch it out for Get-ADGroup -Properties Member alltogether as I know it can cause issues when there are more than 1000 members in a group.

@rschouten97 rschouten97 added the enhancement New feature or request label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant