create UserPrincipalName but with First Initial LastName

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 2 weeks, 5 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • bigalusn
    Participant
    #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?


    bigalusn
    Participant
    #512513

    oops, type-O.  thanks folks, mark this as resolved.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.