Home

Task : Output A List Of Home Drive Paths Configured In Active Directory

#DSQuery dsquery user -name "*" -limit 0 | dsget user -samid -hmdir -hmdrv -profile >c:\temp\usersV2.txt   #PowerShell # More flexibility # Includes the state of the computer account (Enable or…

Read More

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