export a list of all users including the value of the "pager" field

  • Thread starter Thread starter Remco
  • Start date Start date
R

Remco

Hi everyone,

I want to export a list of all users including the value of the "pager"
field, so that I can edit it with Excel for example.
Does anyone know how to? Ithink it can be done with an LDAP query?

Many thanks,
Remco.
 
Remco said:
I want to export a list of all users including the value of the "pager"
field, so that I can edit it with Excel for example.
Does anyone know how to? Ithink it can be done with an LDAP query?

You can use ADO in a VBScript program to retrieve the sAMAccountName and
pager attributes of all users. sAMAccountName is the NT names of the users,
also called the "pre-Windows 2000 logon name". You could retrieve
distinguishedName instead. For info on using ADO see this link:

http://www.rlmueller.net/ADOSearchTips.htm

You can also use Joe Richards' adfind command line tool. Your filter would
be:

(&(objectCategory=person)(objectClass=user))

Your list of attributes would be:

sAMAccountName,pager

If you output the values in one comma delimited line per user you can import
into Excel.
 
Hello,

If you want to try a solution that does not involve scripting you could look
at DSRAZOR for Windows to generate your report.
DSRAZOR can list all users and the attributes you want to report on for each
user. You could export this to a CSV and modify it in Excel. Also, once
you're done modifying it in Excel you can import the information back into
Active Directory to update the users.
There is a simpler way, though. DSRAZOR provides a way to easily update
attributes for users. You could generate a simple report that lists all
users and their pager numbers. Then you could select a user (or multiple
users), press a button, enter in the new pager number, press OK, and it will
update the pager number on any selected user(s). DSRAZOR can do this with
most attributes. While this solution may be easier than other scripted
solutions offered here, it is not free, you have to buy the product.
 
Back
Top