I know the main question has been answered but I'll bite and talk about the
new tools. Although I like ldifde and csvde for some uses, the ds* tools
have advantages in some situations because you don't need to know as much
about LDAP and the attributes Active Directory uses to do some common tasks.
dsget will help you get the information about one object in AD. dsquery
will help you get information about multiple objects in AD.
The following is from the help of dsget:
"To find all users with names starting with "John" and display their office
numbers:
dsquery user -name John* | dsget user -office"
dsquery user domainroot -name * | dsget user -dn -samID
gave me reasonable looking results for the DN and samAccountName of the
users in my domain. I expect
dsquery user domainroot -name * | dsget user -dn -email
would give you the results you are looking for. I don't have email address
configured in my test domain to try it on. The dsquery user
domainroot -name * will output a list of DNs which dsget uses to fetch the
properties of the object will.
Even if you decide to go with csvde, I'd suggest looking at the help for
both dsquery user /? and dsget user /? to get more info about querying
users.
Jason
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"john boy" <(E-Mail Removed)> wrote in message
news:054c01c3bf89$d27fee10$(E-Mail Removed)...
> hey there,
>
> can anyone tell me the exact syntax using dsget to export
> all my domain users and their emails to a text file please?
>
> thank ya! :-)