{"id":2360,"date":"2017-10-23T20:41:01","date_gmt":"2017-10-23T20:41:01","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=2360"},"modified":"2017-10-23T20:41:01","modified_gmt":"2017-10-23T20:41:01","slug":"export-list-of-users-from-ad-and-all-proxy-addresses","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=2360","title":{"rendered":"Export List of Users from AD and all Proxy Addresses"},"content":{"rendered":"<p>If you need a list of users and their respective proxy addresses then the command below will do this\u00a0&#x1f642;<\/p>\n<p>&nbsp;<\/p>\n<p><span class=\"pl-c1\">Get-ADUser<\/span> <span class=\"pl-k\">&#8211;<\/span>Filter <span class=\"pl-k\">*<\/span> <span class=\"pl-k\">&#8211;<\/span>Properties proxyaddresses <span class=\"pl-k\">|<\/span> <span class=\"pl-c1\">Select-Object<\/span> Name<span class=\"pl-k\">,<\/span> @{L <span class=\"pl-k\">=<\/span> <span class=\"pl-s\">&#8220;ProxyAddresses&#8221;<\/span><span class=\"pl-k\">;<\/span> E <span class=\"pl-k\">=<\/span> { <span class=\"pl-k\">$<\/span><span class=\"pl-c1\">_<\/span><span class=\"pl-en\">.ProxyAddresses<\/span> <span class=\"pl-k\">-join<\/span> <span class=\"pl-s\">&#8220;;&#8221;<\/span>}} <span class=\"pl-k\">|<\/span> <span class=\"pl-c1\">Export-Csv<\/span> <span class=\"pl-k\">&#8211;<\/span>Path c:\\temp\\proxyaddresses.csv <span class=\"pl-k\">&#8211;<\/span>NoTypeInformation<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you need a list of users and their respective proxy addresses then the command below will do this\u00a0&#x1f642; &nbsp; Get-ADUser &#8211;Filter * &#8211;Properties proxyaddresses | Select-Object Name, @{L = &#8220;ProxyAddresses&#8221;; E = { $_.ProxyAddresses -join &#8220;;&#8221;}} | Export-Csv &#8211;Path c:\\temp\\proxyaddresses.csv &#8211;NoTypeInformation<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,59],"tags":[],"class_list":["post-2360","post","type-post","status-publish","format-standard","hentry","category-ad","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2360"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2360\/revisions"}],"predecessor-version":[{"id":2361,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/2360\/revisions\/2361"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2360"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}