#Unhide in bulk, if you have ready csv with Primary smtp email addresses: $users = import-csv C:\temp\hidden.csv Foreach($_ in $users) {Set-mailbox -identity $_.PrimarySmtpAddress -HiddenFromAddressListsEnabled $false}{"id":1508,"date":"2020-03-28T18:39:06","date_gmt":"2020-03-28T10:39:06","guid":{"rendered":"https:\/\/www.itforce.mn\/?p=1508"},"modified":"2020-03-28T19:22:13","modified_gmt":"2020-03-28T11:22:13","slug":"1508","status":"publish","type":"post","link":"https:\/\/www.itforce.mn\/index.php\/2020\/03\/28\/1508\/","title":{"rendered":"How to unhide mailboxes in bulk in Exchange\/AD"},"content":{"rendered":"<p><span style=\"color: #000000;\"><strong>#Unhide in bulk, if you have ready csv with Primary smtp email addresses:<\/strong><\/span><\/p>\n<pre>$users = import-csv C:\\temp\\hidden.csv\r\nForeach($_ in $users) {Set-mailbox -identity $_.PrimarySmtpAddress -HiddenFromAddressListsEnabled $false}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":null,"protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,17],"tags":[],"class_list":["post-1508","post","type-post","status-publish","format-standard","hentry","category-exchange-server","category-powershell-tips"],"_links":{"self":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/comments?post=1508"}],"version-history":[{"count":4,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1508\/revisions"}],"predecessor-version":[{"id":1512,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/posts\/1508\/revisions\/1512"}],"wp:attachment":[{"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/media?parent=1508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/categories?post=1508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itforce.mn\/index.php\/wp-json\/wp\/v2\/tags?post=1508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}