Answer the question
In order to leave comments, you need to log in
How to send a notification about empty AD fields?
Colleagues, how to search by user OU and send an email to the administrator about the fields of user properties that are not filled in (for example, they did not specify email, phone number, office number, position, etc.? Maybe someone has already done this ...
Answer the question
In order to leave comments, you need to log in
I won’t write the exact script, but I can tell you which way to dig)
Cmdlet "Get-ADUser -Filter". An empty value "-eq $null".
As an example:
get-aduser -filter * -properties department | where department -eq $null
Find all users with an empty department field.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question