Changing username from uppercase to lowercase in Active Directory 2000.

Posted on 2006-05-16
Last Modified: 2007-12-19
Have several usernames in active directory that were initially created with first letter in first name and first letter in last name in uppercase as in John.Doe.  I have tried to change them to all lowercase as in john.doe but even when I apply the changes the username just diverts back to how it was again (John.Doe).  Is there a way to change it to all lowercase and actually keep it that way?  Reason this is needed is because of an application interface with Unix and Unix does not like uppercase usernames.  Any help is appreciated.  
Question by:luzanija
    LVL 4

    Accepted Solution

    a script like this could do the trick:
    ( I have no posibility to test , test this before applying to your domain)

    'script start *************************************************
    Option Explicit

    Dim objContainer
    Dim objUser
    Dim strNewName
    dim a

    'create container object
    Set objContainer = GetObject("WinNT://YourDomainName")

    'loop through users
    For Each objUser In objContainer

          'put user logon name in variable
          'convert variable to lowercase
          strNewName = LCase(strNewName)
          'put lowercase value in userobject
          objUser.sAMAccountname = strNewName

    MsgBox "Done converting " & a & " users"
    'script end *************************************************

    this script should take the logonname of the user , convert it to lowercase and save it.

    again: test it first
    LVL 2

    Assisted Solution

    If you highlight a name in AD hit F2 to rename.   Retype as you wish and it will show yu another field with other stuff you can change as well.
    LVL 4

    Expert Comment

    is the logonname you want in lowercase or the fullname or the displayname?

    Author Comment

    Need the login name to be john.doe instead of John.Doe but when I try to change it just reverts back to what it was (John.Doe).  

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now