?
Solved

Bulk username change

Posted on 2014-01-16
2
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 37

Accepted Solution

by:
Mahesh earned 2000 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Group policies can be applied selectively to specific devices with the help of groups. Utilising this, it is possible to phase-in group policies, over a period of time, by randomly adding non-members user or computers at a set interval, to a group f…
Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Suggested Courses
Course of the Month10 days, 23 hours left to enroll

770 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