{"id":1396,"date":"2013-04-03T13:34:17","date_gmt":"2013-04-03T13:34:17","guid":{"rendered":"https:\/\/pipe2text.com\/?page_id=1396"},"modified":"2013-04-03T13:49:49","modified_gmt":"2013-04-03T13:49:49","slug":"granting-an-administrator-full-access-permissions-to-all-mailboxes-whose-associated-user-accounts-are-stored-in-a-specific-ou","status":"publish","type":"page","link":"https:\/\/pipe2text.com\/?page_id=1396","title":{"rendered":"Exporting all mailboxes whose associated user accounts are stored in a specific OU to a PST file"},"content":{"rendered":"<p>$Export = Get-User -OrganizationalUnit &#8220;yourdomain.com\/OU\/SubOU&#8221; -Filter &#8220;RecipientType -eq &#8216;UserMailbox'&#8221; | Get-Mailbox ; $Export|%{$_|New-MailboxExportRequest -FilePath \\\\fileshare\\share\\$($_.alias).pst}<\/p>\n<p>This script will locate all users with mailboxes located in the OU you specify in the <strong>&#8220;yourdomain.com\/OU\/SubOU&#8221;<\/strong> section. It will then export them to the file share you specify in the <strong>\\\\fileshare\\share\\$($_.alias).pst<\/strong> section. Make sure you keep the <strong>$($_.alias).pst<\/strong> variable in the script. It will ensure that the pst files are created with the alias of the user being exported at that time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$Export = Get-User -OrganizationalUnit &#8220;yourdomain.com\/OU\/SubOU&#8221; -Filter &#8220;RecipientType -eq &#8216;UserMailbox&#8217;&#8221; | Get-Mailbox ; $Export|%{$_|New-MailboxExportRequest -FilePath \\\\fileshare\\share\\$($_.alias).pst} This script will locate all users with mailboxes located in the OU you specify in the &#8220;yourdomain.com\/OU\/SubOU&#8221; section. It will then export them to the &hellip; <a href=\"https:\/\/pipe2text.com\/?page_id=1396\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"class_list":["post-1396","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1396","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1396"}],"version-history":[{"count":2,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1396\/revisions"}],"predecessor-version":[{"id":1400,"href":"https:\/\/pipe2text.com\/index.php?rest_route=\/wp\/v2\/pages\/1396\/revisions\/1400"}],"wp:attachment":[{"href":"https:\/\/pipe2text.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1396"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}