Howto change User UPN name

eddy sophian 26 Reputation points
2021-02-16T03:16:51.24+00:00

Hi, I newbie in AD

How to change user upn from xxxA@keyman .com to xxxB@keyman .com for user? i can do it manually but how to change it using script for all user? such user A is from xxxA@keyman .com to xxxB@keyman .com and user c current is xxxC@keyman .com to xxxD@keyman .com.

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,728 questions
0 comments No comments
{count} votes

Accepted answer
  1. SUNOJ KUMAR YELURU 14,711 Reputation points MVP
    2021-02-16T04:35:59.35+00:00

    HI @eddy sophian
    Thank You for clarification and your reply.

    Change the User Logon Name from a single user in AD
    Import-Module ActiveDirectory
    Set-ADUser -Identity "peter.tan@fabrikim.com" -UserPrincipalName "jhon.tan@fabrikim.com"

    How to change User Logon Name in bulk

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 14,711 Reputation points MVP
    2021-02-16T04:03:05.703+00:00

    HI @eddy sophian
    As per your request below is the URL's for changing UPN using powershell script.
    Change User UPN Address Using PowerShell For Single Or Multiple Users
    Mass change of user login names in AD

    If the Answer is helpful, please click Accept Answer and up-vote, this can be beneficial to other community members.

    0 comments No comments

  2. eddy sophian 26 Reputation points
    2021-02-16T04:09:24.303+00:00

    Hi @SUNOJ KUMAR YELURU . thank you for the link but what I need is I want to change only "User Logon Name" not "User Logon Name (pre-Windows 2000)" for users. sorry for any inconvenience caused

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.