Skip to content

Instantly share code, notes, and snippets.

Created October 25, 2016 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5423c265c9fdac7303ad06257adf0cca to your computer and use it in GitHub Desktop.
Save anonymous/5423c265c9fdac7303ad06257adf0cca to your computer and use it in GitHub Desktop.
Import-Csv C:\temp\sip.csv | ForEach-Object {Get-ADUser $_.Username -Properties displayname, Name, SamAccountName, EmailAddress,'msRTCSIP-PrimaryUserAddress'} | Export-Csv C:\usernames.csv -Notype
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment