Solved

Bulk username change

Posted on 2014-01-16
2
207 Views
Last Modified: 2014-01-30
Dear Experts,

In AD our user logon names are firstname.surname@company.com and our Pre-Windows 2000 logon name are Company\FirstinitialSurname

We need to change all our Pre-Windows 2000 logon names to firstname.surname

What's the easiest way to do this for all users? (Hundreds of users in multiple OUs) Also what implications are there for instance on Exchange and file server folder permissions?
0
Comment
Question by:Bladey001
2 Comments
 
LVL 36

Accepted Solution

by:
Mahesh earned 500 total points
ID: 39786457
There should not be any impact as file server recognize upon SID and Exchange works on alias

you can download "Bulk AD Users" tool from Wise soft (Freeware) and search user there from list, OU or entire domain and there is option called properties to load.
There you should select Pre-Windows 2000 logon names, logon names, 1st name, last names
Then you need to export this list to Excel from tool
Then you need to use Excel concatenate function to club 1st name + last name in the format of 1st name.lastname and map them with logon names in csv file format.
Now you can pass this file as input to another option call csv update from the tool and it should update the required fields for you for all users in the list

http://wisesoft.co.uk/software/bulkadusers/default.aspx

You can try and get more help from tool web site

Mahesh
0
 
LVL 40

Expert Comment

by:footech
ID: 39786502
Using PowerShell and the MS AD cmdlets.
Import-Module ActiveDirectory
Get-ADUser -filter * | ForEach {
   $newsam = ("$($_.givenname).$($_.surname)").ToLower()
   Write-Output "Changing $($_.samaccountname) to $newsam"
   Set-ADUser _.samaccountname -SamAccountName $newsam -whatif
}

Open in new window

Comment out or remove the Write-Output line if you don't want any feedback, and remove the -whatif parameter from Set-ADUser to run for real.  With the -whatif parameter in place, no changes will be made.

Neither Exchange or folder permissions should be affected.  Folder permissions in particular are referenced by the account's SID which doesn't change.  You may want to ask the question in the Exchange topic area for a more definitive answer regarding that, as Exchange isn't my strongest area, but I don't see it being an issue as renaming a user is a common task.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
This tutorial will walk an individual through locating and launching the BEUtility application and how to execute it on the appropriate database. Log onto the server running the Backup Exec database. In a larger environment, this would generally be …
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

856 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