How do I export users name and login in Active Directory Users and Computers?

Clark, Michael 0 Reputation points
2024-10-15T16:10:09.92+00:00

How do I export users name and login in Active Directory Users and Computers?

Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,937 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Clément BETACORNE 2,496 Reputation points
    2024-10-17T07:24:36.2466667+00:00

    Hello,

    As far as I know the export function in Active Directory Users and Computers is limited however in PowerShell you can do it quickly via this cmdlet from a computer or server with the Active Directory PowerShell Module

    Get-ADUser -Filter * | Select-Object Name,UserPrincipalName,SamAccountName

    To export it simply add the Export-csv at the end like this

    Get-ADUser -Filter * | Select-Object Name,UserPrincipalName,SamAccountName | Export-Csv -Path export.csv -Delimiter ";" -NoTypeInformation -Encoding UTF8

    Regards,

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.