Become a Columnist Microsoft Exchange Site Microsoft Support SiteMSDN Exchange Site

   

Subscribe to OutlookExchange
Anderson Patricio
Ann Mc Donough
Bob Spurzem
Brian Veal
Catherine Creary
Cherry Beado
Colin Janssen
Collins Timothy Mutesaria
Drew Nicholson
Fred Volking
Glen Scales
Goran Husman
Guy Thomas
Henrik Walther
Jason Sherry
Jayme Bowers
John Young
Joyce Tang
Justin Braun
Konstantin Zheludev
Kristina Waters
Kuang Zhang
Mahmoud Magdy
Martin Tuip
Michael Dong
Michele Deo
Mitch Tulloch
Nicolas Blank
Pavel Nagaev
Ragnar Harper
Ricardo Silva
Richard Wakeman
Russ Iuliano
Santhosh Hanumanthappa
Steve Bryant
Steve Craig
Todd Walker
Tracey J. Rosenblath
 
 

Updating Active Directory for the Exchange 2000 Administrator

CSVDE is Your Friend

As I only wanted to update users objects generated by the migration wizard – in this case migrating from GroupWise – I used the following command line to generate the source .CSV: (I have replaced the company specific info with ACME for security reasons.) Lets look at what this command line means:

csvde -f %1.csv -d "ou=budapest,dc=hu,dc=ACME,dc=com" -r "(&(objectCategory=user) (proxyAddresses=gwise:*) )"

“csvde -f %1.csv “

Runs csvde with a user specified file name

-d "ou=budapest,dc=hu,dc=ACME,dc=com"

“-d” specifies the location in LDAP notation, where to start searching. If you don’t know how to construct one of these, then lets start by having a look at the “Active Directory Users and Computers” utility

The lowest level is the domain, shown as “acme.com” – Our path to this is “dc=ACME,dc=com”. Note how we refer to different objects in the domain as we move along. Domain names will always be referenced using the “DC=” prefix. The problem with this is that our users don’t live in the root of a domain, they need to live in a container, so lets look at the rest of the LDAP path. The users that needed updating were in a child domain, that makes their root address “dc=hu,dc=ACME,dc=com". Now that we have the domain address we need to know one more thing, how do we refer to the container housing our users?

I created an OU called Budapest just off the root of the domain, and choose that as the root OU for the remote office. This means that any users created in this OU or in nested OU’s created within the Budapest OU will be included in the result set created by the csvde.exe utility. Note : If we refer to the users container, then our reference changes from OU=Budapest to CM=users. Note that the “system generated folders” look different from OU’s, which have a distinctive folder icon. For the purpose of simplicity, this is the easiest way of noting the differences in order to construct an LDAP search path.

-r "(&(objectCategory=user) (proxyAddresses=gwise:*) )

-r specified our LDAP search filter and defaults to (objectClass=*). In this case were not interested in extracting anything but users. The thing that made my migration users unique was the fact that they had a groupwise address. This meant that only the users created as a result of being migrated would appear in the search result. This could be further customised based on the groupwise address space or any other attribute that makes your users unique, i.e. (sn=a*) – all surnames starting with an “a”.

Updating Active Directory for the Exchange 2000 Administrator

Nicolas Blank Page 1 | Page 2 | Page 3


Disclaimer: Your use of the information contained in these pages is at your sole risk. All information on these pages is provided "as is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by Stephen Bryant or Pro Exchange. OutlookExchange.Com, Stephen Bryant and Pro Exchange shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

Copyright Stephen Bryant 2008