Skip to content

Instantly share code, notes, and snippets.

@mrzcn
Created August 13, 2021 05:22
Show Gist options
  • Save mrzcn/16065957187cbf4599cd8eb04167e036 to your computer and use it in GitHub Desktop.
Save mrzcn/16065957187cbf4599cd8eb04167e036 to your computer and use it in GitHub Desktop.

Revisions

  1. mrzcn created this gist Aug 13, 2021.
    1 change: 1 addition & 0 deletions AD User Export With Specific Data
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    get-aduser -properties * -filter * | select name, emailaddress, officephone,homephone,mobilephone,ipphone,pager | export-csv c:\users.csv