{"id":1214,"date":"2016-02-17T17:51:50","date_gmt":"2016-02-17T16:51:50","guid":{"rendered":"https:\/\/technet.cloud4you.biz\/?p=1214"},"modified":"2016-02-17T17:51:50","modified_gmt":"2016-02-17T16:51:50","slug":"oneliner-alle-mail-aliase-von-benutzern-gruppen-aus-einer-ou-anzeigen","status":"publish","type":"post","link":"https:\/\/technet.cloud4you.biz\/en\/oneliner-alle-mail-aliase-von-benutzern-gruppen-aus-einer-ou-anzeigen\/","title":{"rendered":"OneLiner: Get all Mail-Aliases of all Users \/ Groups in one OU"},"content":{"rendered":"<p>As we had this request currently, we&#8217;ve created the following OneLiners, which i&#8217;d like to share with you:<\/p>\n<p>Get all Mailbox-Aliases:<\/p>\n<blockquote>\n<pre>Get-Mailbox -OrganizationalUnit \"<span style=\"color: #ff0000;\"><em>[DN of OU]<\/em><\/span>\" | Select -Expand EmailAddresses Alias | Select SmtpAddress, Alias<\/pre>\n<\/blockquote>\n<p>Get all DistributionGroup-Aliases:<\/p>\n<blockquote>\n<pre>get-distributiongroup -OrganizationalUnit \"<span style=\"color: #ff0000;\"><em>[DN of OU]<\/em><\/span>\" | Select -Expand EmailAddresses Alias | Select SmtpAddress, Alias<\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>As we had this request currently, we&#8217;ve created the following OneLiners, which i&#8217;d like to share with you: Get all Mailbox-Aliases: Get-Mailbox -OrganizationalUnit &#8220;[DN of OU]&#8221; | Select -Expand EmailAddresses Alias | Select SmtpAddress, Alias Get all DistributionGroup-Aliases: get-distributiongroup -OrganizationalUnit &#8220;[DN of OU]&#8221; | Select -Expand EmailAddresses Alias | Select SmtpAddress, Alias<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,25,17],"tags":[203,148],"class_list":["post-1214","post","type-post","status-publish","format-standard","hentry","category-exchange","category-server","category-windows","tag-exchange","tag-script"],"translation":{"provider":"WPGlobus","version":"3.0.6","language":"en","enabled_languages":["de","en"],"languages":{"de":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts\/1214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/comments?post=1214"}],"version-history":[{"count":2,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts\/1214\/revisions"}],"predecessor-version":[{"id":1216,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/posts\/1214\/revisions\/1216"}],"wp:attachment":[{"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/media?parent=1214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/categories?post=1214"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/technet.cloud4you.biz\/en\/wp-json\/wp\/v2\/tags?post=1214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}