{"id":222,"date":"2008-10-22T17:28:43","date_gmt":"2008-10-22T17:28:43","guid":{"rendered":"https:\/\/www.wapshere.com\/missmiis\/?page_id=222"},"modified":"2008-10-22T17:28:43","modified_gmt":"2008-10-22T17:28:43","slug":"mbox_permsps1","status":"publish","type":"page","link":"https:\/\/www.wapshere.com\/missmiis\/mbox_permsps1","title":{"rendered":"mbox_perms.ps1"},"content":{"rendered":"<pre>#\r\n# mbox_perms.ps1\r\n# \r\n# Written by Carol Wapshere, September 2008\r\n#\r\n# Use to create assign Full Mailbox Access to another user.\r\n#\r\n# Instructions:\r\n#\r\n#\u00c2\u00a0\u00c2\u00a0 1. Modify the mbox_perms.csv file to include information about the mailbox and user.\r\n#\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 The file must have a header row and must include the following fields:\r\n#\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 dn,uid\r\n#\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 where\r\n#\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 dn is the full DN of the account associated with the mailbox\r\n#\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 uid is the username in the format BBHFGG\\sAMAccountName\r\n#\r\n#\u00c2\u00a0\u00c2\u00a0 2. Open the Exchange Management Shell\r\n#\r\n#\u00c2\u00a0\u00c2\u00a0 3. CD to C:\\scripts and run mbox_perms.ps1.<\/pre>\n<pre>\r\ncat mbox_perms.csv &gt; unicode.csv # make utf8<\/pre>\n<pre>import-csv unicode.csv | foreach {<\/pre>\n<pre>write-host $_.dn\r\nwrite-host $_.uid<\/pre>\n<pre>Add-MailboxPermission -Identity $_.dn -User $_.uid -AccessRights 'FullAccess'<\/pre>\n<pre>}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># # mbox_perms.ps1 # # Written by Carol Wapshere, September 2008 # # Use to create assign Full Mailbox Access to another user. # # Instructions: # #\u00c2\u00a0\u00c2\u00a0 1. Modify the mbox_perms.csv file to include information about the mailbox and user. #\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0\u00c2\u00a0 The file must have a header row and must include the following fields:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"class_list":["post-222","page","type-page","status-publish","hentry"],"jetpack_shortlink":"https:\/\/wp.me\/Pkp1o-3A","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/222","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":1,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/222\/revisions"}],"predecessor-version":[{"id":223,"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/pages\/222\/revisions\/223"}],"wp:attachment":[{"href":"https:\/\/www.wapshere.com\/missmiis\/wp-json\/wp\/v2\/media?parent=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}