get-aduser using emailaddress

Question:

when i want to get some information from an user i use this:

but when i wanna check the information from a bulk of users i try this:

email is the name of the variable in the CSV file
but i am getting this error:

“Get-ADUser : Property: ’email’ not found in object of type: ‘System.Management.Automation.PSCustomObject'”

i can not use the identity because te emailaddess is not supported for this one

Answer:

It doesn’t look like you are setting up properties for the search result to return. Ie:

Source:

get-aduser using emailaddress by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply