K
K
Kirill 12018-06-24 19:46:53
Active Directory
Kirill 1, 2018-06-24 19:46:53

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

1 answer(s)
B
blackbeard, 2018-06-25
@Black_beard_ast

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 question

Ask a Question

731 491 924 answers to any question