Modifying DisplayName Firstname Surname in Active Directory Users and Computers


Well I was only aware of one particular way to modify the displayname in the Active Directory, and then this only worked for New users.

How to change display names of Active Directory users
http://support.microsoft.com/kb/250455/

Well a colleague of mine pointed me in the direction of some really useful utilities which make this a whole lot easer. Check em out !

Current version of ADModify .NET can be found here:

http://www.codeplex.com/admodify

This task can be also accomplished with other tools like adfind and admod from www.joeware.net. Quick tutorial here:

http://blogs.dirteam.com/blogs/tomek/archive/2006/10/19/ADMod_2C00_-ADFind-_2D00_-user-rename.aspx

This example shows user rename but in the same way (passing results) You can modify displayName.

I thank Tomasz Onyszko  of Microsoft for these great pointers.

Comments (6)

  1. MarcJ says:

    Hi Jane,

    I run a little blog on <a href="http://free-activedir-tools.blogspot.com">Free Active Directory Reporting Tools</a> and many of them can actually be used to modify AD data as well.

    If you're ever looking for helpful and FREE AD tools, please feel free to stop by!

    Thanks,

    Marc

  2. Pankaj says:

    I am trying to modify details in active directory but only Given name, Display name and surname I am able to change.
    Now I want to change designation and center also but not able to change using the below code. Please help

    PrincipalContext oPrincipalContext = GetPrincipalContext(sDomainName, sServiceUserName, sServicePassword);
    UserPrincipal oUserPrincipal = UserPrincipal.FindByIdentity(oPrincipalContext, sUserName);

    oUserPrincipal.DisplayName = "1";
    oUserPrincipal.GivenName = "2";
    oUserPrincipal.Surname = "3";
    oUserPrincipal.Description = "4";

    oUserPrincipal.Save();
    return oUserPrincipal;

  3. werwrewerer says:

    https://www.facebook.com/WatchVacationOnline
    https://www.facebook.com/WatchTheVisitOnline
    https://www.linkedin.com/grp/post/8338032-6017245551668580353
    https://www.linkedin.com/grp/post/6975089-6015036398715822084
    https://www.rebelmouse.com/WatchKitchenSinkOnline/
    https://www.rebelmouse.com/WatchAmericanUltraOnline/
    https://www.linkedin.com/grp/post/8337129-6017929691594260480
    https://www.rebelmouse.com/WatchPixelsOnline/
    https://www.linkedin.com/grp/post/6981021-6017293164958732291
    https://www.rebelmouse.com/WatchAmyOnline/
    https://www.facebook.com/WatchAmyOnline
    https://www.facebook.com/WatchDarkPlacesOnline
    https://www.linkedin.com/grp/post/8337129-6017929104496558084
    https://www.linkedin.com/grp/post/6971553-6011498080841510914
    https://www.facebook.com/WatchRegressionOnline
    https://www.linkedin.com/grp/post/6973703-6017392948025507843
    https://www.linkedin.com/grp/post/6980115-6017745897104883716
    https://www.rebelmouse.com/WatchWarRoomOnline/
    https://www.facebook.com/WatchRickiAndTheFlashOnline
    https://www.rebelmouse.com/WatchMinionsOnline/
    https://www.facebook.com/WatchSelflessOnlineNow
    https://www.rebelmouse.com/WatchEverestOnline/
    https://www.facebook.com/WatchJaneGotaGunOnline
    https://www.linkedin.com/grp/post/6980115-6017741490241941507
    https://www.facebook.com/WatchTheManFromUncleOnline
    https://www.linkedin.com/grp/post/6973703-6017397215125852162
    https://www.linkedin.com/grp/post/6980115-6017733578547290113
    https://www.rebelmouse.com/WatchJaneGotaGunOnline/
    https://www.rebelmouse.com/WatchInsideOutOnline/
    https://www.facebook.com/WatchMazeRunner2TheScorchTrialsOnline
    https://www.linkedin.com/grp/post/6971553-6011437718989459459
    https://www.facebook.com/WatchAntmanOnlineNow
    https://www.rebelmouse.com/WatchBlackMassOnline/
    https://www.facebook.com/WatchPixelsOnline
    https://www.facebook.com/WatchMinionsOnlineNow
    https://www.rebelmouse.com/WatchDarkPlacesOnline/
    https://www.rebelmouse.com/WatchTrainwreckOnline/
    https://www.rebelmouse.com/WatchRickiAndTheFlashOnline/
    https://www.linkedin.com/grp/post/8338032-6017239480027664385
    https://www.facebook.com/WatchEverestOnline
    https://www.linkedin.com/grp/post/6975089-6015034074878468096
    https://www.rebelmouse.com/MissionImpossible5RogueNation/
    https://www.rebelmouse.com/WatchJurassicWorldOnline/
    https://www.rebelmouse.com/WatchSouthpawOnline/
    https://www.rebelmouse.com/WatchStraightOuttaCompton/
    https://www.rebelmouse.com/WatchTheGallowsOnline/
    https://www.facebook.com/WatchTrainwreckOnline
    https://www.linkedin.com/grp/post/8308755-6006706945602437125
    https://www.linkedin.com/grp/post/6971553-6011439399412187136
    https://www.facebook.com/WatchPaperTownsOnline