User Tools

Site Tools


windows:windows_adinfo

This is an old revision of the document!


Windows AD information in command line

Get the extensionAttribute attribute value for all Active Directory users using PowerShell

How do I return the sAMAccountName and a particular attribute – in this case extensionAttribute1 for all Active Directory users in PowerShell

Get-ADUser -Properties extensionAttribute1 -Filter * | Select sAMAccountName, extensionAttribute1 | export-csv c:\temp\extensionattribute1.csv
windows/windows_adinfo.1633547380.txt.gz · Last modified: 2021/10/06 21:09 by manu