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-ADDirectReports -Recurse where extensionattribute1 is not equal to "AAA" #23

Open
yalinturk opened this issue Oct 2, 2020 · 1 comment

Comments

@yalinturk
Copy link

@lazywinadmin Thank you, the code you have shared is very good.

In my case, I need to collect direct and indirect reporters with using -recurse feature where extensionAttribute1 is not equal to "AAA". Since the result count is very high (1,5k users) I believe we should apply that filter while the function collect the data.

Can you please help me?

@Jireck-npds
Copy link

line 71; try
Get-Aduser -identity $Account -Properties directreports, extensionAttribute1 | Where extensionAttribute1 -ne 'AAA' |

from head, no testing

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

No branches or pull requests

2 participants