Change DOMAINusername into First Last Name

Home Forums Scripting PowerShell Change DOMAINusername into First Last Name

This topic contains 1 reply, has 2 voices, and was last updated by  wullieb1 1 year ago.

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

  • shadragon
    Member
    #167344

    I’d like to convert a list of users in DOMAINusername format into first and last names via Powershell as part of a larger script.

    Example:

    DOMAINtrogers
    DOMAINpteach
    DOMAINasmith

    to

    Tom Rogers
    Peter Teach
    Alvin Smith

    Can anyone suggest a way to do this?

    Cheers.


    wullieb1
    Moderator
    #245721

    get-aduser should be able to do that.

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

You must be logged in to reply to this topic.