Default UPN name in AD.

Is there a way to default UPN to the user@company.com while manually creating a user in AD?
Currently is defaulting to @ad.company.com in the user login name.  So we need to change it in drop-down menu every time.  
This is in Windows Server 2016 Std Edition Domain Controller.
Please advice.  Thanks.
LVL 17
Tiras25Asked:
Who is Participating?
 
Jose Gabriel Ortega CCEO Faru Bonon ITCommented:
Yes,
Here's a step by step, but it's for OU:
https://blogs.technet.microsoft.com/canitpro/2015/07/07/step-by-step-changing-the-upn-suffix-for-an-entire-domain-via-powershell/

Another way I use, it's to do it using exchange email address policies,

Jose.
0
 
Vasil Michev (MVP)Commented:
Not possible, afaik. But if you provision users via some automated script, you can simply set it there.
0
 
Tiras25Author Commented:
Thanks again Jose!  I knew its possible in PS.  Was curious if there a way to achieve this manually in GUI.
0
On-Demand: Securing Your Wi-Fi for Summer Travel

Traveling this summer?Check out our on-demand webinar to learn about the importance of Wi-Fi security and 3 easy measures you can start taking immediately to protect your private data while using public Wi-Fi. Follow us today to learn more!

 
Jose Gabriel Ortega CCEO Faru Bonon ITCommented:
Not really, GUI is not for professionals! :P hahaha GUI is for people that are usually learning the platform :) PS rocks! :) haha and I'm glad to help
0
 
Tiras25Author Commented:
Gotcha!  Thanks again Jose.
0
 
Jose Gabriel Ortega CCEO Faru Bonon ITCommented:
And a 3rd way is to use get-aduser and get all the users that have different UPN (ex: domain.local) from the domain you want (ex: domain.com).
with that group you can decide to set them using a script. I'll post one script on technet that does so today.

Jose.
0
 
Jose Gabriel Ortega CCEO Faru Bonon ITCommented:
(Remember to mark the answers)
0
 
Tiras25Author Commented:
Got it.   I guess with 1-2 random users that's OK.  With more I can schedule a PS script or scripted Get-Aduser.
0
 
Sean Plemons Kelly, CISSPSecurity/Information Assurance EngineerCommented:
Right click the target Organizational Unit and select Properties.

In the Attributes Editor tab, scroll down to the uPNSuffixes attribute, change it to what you want it to be.
0
 
Tiras25Author Commented:
Thanks Sean.  Still not taking an effect..  
I can change it but cannot make it as a default.
0
 
Sean Plemons Kelly, CISSPSecurity/Information Assurance EngineerCommented:
Thanks Sean.  Still not taking an effect..  
I can change it but cannot make it as a default.

Try doing it through ADSI edit.

1. Windows Key + Run, type MMC
2. File > Add/remove snap-ins
3. Select ADSI edit, click add. Click ok.
4. Right click ADSI edit, click Connect to...
5. Put in the relevant domain information. Click ok.
6. Drill down to your domain's OU (I.E. DC=domain,DC=com, then OU=Domain)
7. Right click the domain OU (I.E. OU=Domain), select properties.
8. Find the uPNSuffixes attribute, change it to what you want it to be.
0
 
Tiras25Author Commented:
Its the same thing Sean.   I can edit and add.  But I cannot make it as a default in drop-down.  I guess its not really possible in GUI like Jose mentioned above.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.