Just new users..Write a simple VB script to change existing ones. This
one works:


Dim oContainer
'Select the OU you want to go against.
Set oContainer= GetObject("LDAP://OU=myOU,DC=yourcompany,DC=com";)

ModifyUsers oContainer
'cleanup
Set oContainer = Nothing
WScript.Echo "Done."

Sub ModifyUsers(oObject)
Dim oUser
    oObject.Filter = Array("user")
    For Each oUser in oObject

      If IsEmpty(ouser.initials) THEN
        ouser.put "displayName", ouser.sn + ", " + ouser.givenName
        ouser.setinfo

      End If

      If Not IsEmpty(ouser.initials) THEN
        ouser.put "displayName", ouser.sn + ", " + ouser.givenName + " "
+ ouser.initials + "."
        ouser.setinfo

      End If

Next
End Sub

Note the lack of error checking, i.e. no guarantess, but it's worked for
me. There's probably better ways to write it also; I'm not a programmer.

-Per

-----Original Message-----
From: DuBose Egleston [mailto:[EMAIL PROTECTED]] 
Posted At: Wednesday, March 06, 2002 11:52 AM
Posted To: Exchange
Conversation: Ex2000 GAL (LastName, FirstName)
Subject: RE: Ex2000 GAL (LastName, FirstName)

OK, I just did this....

Do I need to replicate my AD or force RUS to update?
Or will this just apply to new users?

Maybe I'm not holding my fspoon right?

______________________
D. DuBose Egleston Jr.
Director of Technology
Porter-Gaud School
Charleston, SC 29407
843.402.4677 wk
843.270.4385 cell
[EMAIL PROTECTED]
http://www.portergaud.edu

-----Original Message-----
From: missy koslosky [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 12:49 PM
To: Exchange Discussions
Subject: Re: Ex2000 GAL (LastName, FirstName)


I don't eat Raviolo's.  The kid always finishes them before I remember I
bought them.

It was an apple.
----- Original Message -----
From: "Tom Meunier" <[EMAIL PROTECTED]>
To: "Exchange Discussions" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 12:44 PM
Subject: RE: Ex2000 GAL (LastName, FirstName)


She types this from memory left-handed while eating Chef Boyardee[1]
Raviolio's with a spork with her right-hand.   That's why she's Missy,
and we're not.

[1]  Or Franco-American.  Who cares.

-----Original Message-----
From: missy koslosky [mailto:[EMAIL PROTECTED]]
Posted At: Wednesday, March 06, 2002 11:29 AM
Posted To: MSExchange Mailing List
Conversation: Ex2000 GAL (LastName, FirstName)
Subject: Re: Ex2000 GAL (LastName, FirstName)


1.      On a workstation, insert the Windows 2000 Server CD.  Browse to
d:\support\tools and use WinZip to open support.cab.
2.      Extract adsiedit.dll and adsiedit.msc to a floppy disk or
CD-ROM.
3.      Insert the floppy disk or CD-ROM into your DC and copy the files
to a temporary location.
4.      Click on "Start", then "Run" and type "cmd" (without the quotes)
in the "Open" dialog area.
5.      Change directories within the command console to the temporary
location where you placed the files.
6.      Type "regsvr32 adsiedit.dll" (without the quotes) to register
the ADSI Edit dll.
7.      Click on "Start", then "Run" and type "mmc" (without the quotes)
in the "Open" dialog area.
8.      In the Microsoft Management Console (MMC), click on "Console"
and select "Add/Remove Snap-in." option from the drop-down list.
9.      From the window that appears, click on the "Add" button.  From
the window that appears, choose "ADSI Edit" from the list of available
snap-ins and click "Add".  Click "Close". 10.  Click "OK" in the
Add/Remove Snap-in window.
11.  Highlight the "ADSI Edit" icon in the MMC.    Click "Action" and
select "Connect to." from the drop-down list.
12.  Choose to connect to your DC.
13.  Change the Naming Context to "Configuration Container" and then
click "OK". 14.  Expand the Configuration Container object, and then
expand the Configuration object. 15.  Expand the cn=DisplaySpecifiers
object, and then double-click CN=409. 16.  In the right pane, right
click on "CN=user-Display" and choose "Properties" from the drop-down
list. 17.  Scroll to the createDialog optional property. 18.  Set the
attribute to read %<sn>, %<givenName>.  Click the "Set" button.  Click
"OK" to close the dialog box.

Missy Koslosky

----- Original Message -----
From: "Jean-Francois Bourdeau" <[EMAIL PROTECTED]>
To: "Exchange Discussions" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 11:33 AM
Subject: Ex2000 GAL (LastName, FirstName)


Hi

How can we modify the AD so the Exchange GAL appear as LastName,
FirstName when clicking in To in OL 2000 ?

JF


_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]


_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]



_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to