Get user properties from Active Directory
I need someone to help me create an ADSI script where I can get information from all the users in my domain. I want to run a LDAP query to collect the following info about every user in the domain ;USERNAME
MAILADDRESS
MOBILE
FIRSTNAME
LAST NAME
Lets say that the domain is called "terje.com". How can I make a script list this information (and write it to a file) about all the users in the terje.com domain ? Please post the script in the answer..