Solved

Change Email from CAPS to lower case in Exchange Server 2010

Posted on 2014-04-01
7
309 Views
Last Modified: 2016-06-03
I have a Client who is aking something strange
She has an ACtive directory which is not very Clean and and email adress policy which is: Surname.name@

she wants that every email be in the lower case format . ie: samson.siasia@test.com

How do i Transform : Samson. SIASIA@ or Samson. Siasia to samson.siasia@test.com
0
Comment
Question by:gazambey
7 Comments
 
LVL 19

Accepted Solution

by:
Peter Hutchison earned 95 total points
ID: 39968674
You could use the ToLower() function to change the case of people's Email addresses
e.g.

$mbxlist = Get-Mailbox
Foreach ($user in $mbxlist)
{
  $usermail = $mail.EmailAddresses
  $newemail = ""
  Foreach ($email in $usermail)
  {
      $lowermail = $email.SmtpAddress.ToLower()
      $newemail = "$newemail$loweremail,"
  }
  $newemail = $newemail.substring(0, $newemail.length-1)
  Set-mailbox -Id $user.Identity -EmailAddresses $newemail
}
0
 
LVL 25

Expert Comment

by:Zephyr ICT
ID: 39968671
You could try the ADModify tool to change them: http://admodify.codeplex.com/releases/view/6065#ReviewsAnchor
0
 
LVL 10

Assisted Solution

by:Scott Thomson
Scott Thomson earned 95 total points
ID: 39968683
Hey Gazambey,

I think this would do the trick for you?

but be careful and make sure you understand the script before you do implement it.

Any other experts also please feel free to modify it

http://blogs.technet.com/b/heyscriptingguy/archive/2008/01/08/how-can-i-modify-the-email-addresses-of-all-the-users-in-an-ou-and-its-subous.aspx

On Error Resume Next

Const ADS_SCOPE_SUBTREE = 2

Set objConnection = CreateObject("ADODB.Connection")
Set objCommand =   CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
Set objCommand.ActiveConnection = objConnection

objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE 

objCommand.CommandText = _
    "SELECT AdsPath FROM 'LDAP://OU=Finance,DC=fabrikam,DC=com' WHERE objectCategory='user'"  
Set objRecordSet = objCommand.Execute

objRecordSet.MoveFirst
Do Until objRecordSet.EOF
    Set objUser = GetObject(objRecordSet.Fields("AdsPath").Value)
    strEmailAddress = objUser.Mail
    strEmailAddress = LCase(strEmailAddress)
    objUser.Mail = strEmailAddress
    objUser.SetInfo
    objRecordSet.MoveNext
Loop

Open in new window

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:gazambey
ID: 39968698
Hello Scot

What will be the manual process please?

Rgds
0
 
LVL 10

Expert Comment

by:Scott Thomson
ID: 39968735
I am sorry are you asking for the manual process as in you want to go through and change each email by itself..?

if not please explain further :)

Thanks
0
 

Author Comment

by:gazambey
ID: 39968744
YEs Scott I'm asking for the manual Process  as you said

Because the format of email is not uniform in the ACtive Directory .  If you have it please I'll be glad to hear

Rgds
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange, active directory 4 25
Setting mailbox quotes on exchange for all users 3 22
Exchange Server 2013 crash 3 20
exchange, outlook 20 29
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This article explains how to install and use the NTBackup utility that comes with Windows Server.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 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