create UserPrincipalName but with First Initial LastName Share on Facebook Tweet on Twitter Share on LinkedIn Home › Forums › Scripting › PowerShell › create UserPrincipalName but with First Initial LastName This topic contains 1 reply, has 1 voice, and was last updated by bigalusn 10 months, 3 weeks ago. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts bigalusnParticipant October 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? bigalusnParticipant November 1, 2018 at 11:41 am #512513 oops, type-O. thanks folks, mark this as resolved. Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic.