Powershell command to Get UPN of all the users in Active Directory also Export to CSV


- Open Powershell in Elevated Mode
- Run the following command :

Get-ADUser -Filter * -Properties DisplayName, EmailAddress, Title, userPrincipalName | select DisplayName, EmailAddress, Title, userPrincipalName | Export-CSV "C:\UPN_Addresses.csv"


- You will get the Output in following format :




Download Remote Control Tool for Free : www.wingagaarbin.com

Comments

Popular posts from this blog

How To Work On Cross Site Failure in Exchange 2010 Environment (Failover and Failback)

Activate Exchange 2010 Manually

Migrating SBS 2003 to Windows Server 2008 with Exchange 2007