export for the user list with E-mail id


Powershell to export for the user list with E-mail id

Get-ADUser -SearchBase 'DC=pugazh,DC=in’ -filter * -properties SamAccountName,EmailAddress | ft Name, SamAccountName,EmailAddress | Out-File -FilePath "C:\Userl-list.txt"


Comments

Popular posts from this blog

Troubleshooting Netlogon Error Codes

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)

Troubleshooting AD Active Directory Replication Error 8456 or 8457: "The source | destination server is currently rejecting replication requests"