create UserPrincipalName but with First Initial LastName Share on Facebook Post on reddit Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › PowerShell › create UserPrincipalName but with First Initial LastName This topic has 1 reply, 1 voice, and was last updated 1 year, 6 months ago by bigalusn. Viewing 1 post (of 1 total) Author Posts bigalusnMember Oct 26, 2018 at 2:38 pm #167761 I’m creating a new users script, pretty much got it all working except for the UserPrincipalName. I want to create them with the first initial followed by the last name as their logon names: ASmith -userPrincipalName “$Fname $lname, that only creates Alex Smith, need just asmith. any suggestions? Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.