Archive 14/08/2018

List all users in the domain and email addresses

 import-module activedirectory #List all users in the domain # Display Name and Email Address get-aduser -Filter *  -SearchBase "dc=Test,dc=com" -Properties Displayname,emailaddress | select displayname ,emailaddress | Export-Csv C:\temp\users_and_email.csv     

Read More