{"id":341,"date":"2018-10-29T11:02:28","date_gmt":"2018-10-29T10:02:28","guid":{"rendered":"https:\/\/blog.van-daag.nl\/?p=341"},"modified":"2018-10-29T11:02:28","modified_gmt":"2018-10-29T10:02:28","slug":"disable-enable-automapping-echange-2016","status":"publish","type":"post","link":"https:\/\/van-daag.nl\/?p=341","title":{"rendered":"Disable-Enable automapping Echange 2016"},"content":{"rendered":"<p>Because automapping is not always working correct, just created this script to re-enable automapping with the correct settings. This script you need to run on the Exchange server.<\/p>\n<pre class=\"lang:ps decode:true \" title=\"Disable-Enable automap.ps1\"># Created by Daag van der Meer\r\n# blog.van-daag.nl\r\n# This script gives the user full access to the mailbox. This will update also the folders below the inbox with the rights.\r\n\r\nAdd-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;\r\n\r\n\r\n# Enter the mailbox name here\r\n$mailbox= \"&lt;mailboxname&gt;\"\r\n\r\n# Add here the usernames like \"&lt;USERNAME&gt;\", \"&lt;\u00dcSERNAME&gt;\"\r\n$users= \"&lt;USERNAME&gt;\", \"&lt;\u00dcSERNAME&gt;\"\r\n\r\n\r\n####### Start of the Script. Do not edit below\r\n\r\nforeach ($user in $users){ \r\n# First disable AutoMapping\r\nAdd-MailboxPermission -Identity $mailbox -User $user -AccessRights FullAccess -InheritanceType All -Automapping $false\r\n\r\n\r\n# Now enable Automapping\r\nAdd-MailboxPermission -Identity $mailbox -User $user -AccessRights FullAccess -InheritanceType All -Automapping $true\r\n} \r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Because automapping is not always working correct, just created this script to re-enable automapping with the correct settings. This script you need to run on the Exchange server. # Created by Daag van der Meer # blog.van-daag.nl # This script gives the user full access to the mailbox. This will update also the folders below [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[22,11],"tags":[],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-exchange","category-powershell-script"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=341"}],"version-history":[{"count":1,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":342,"href":"https:\/\/van-daag.nl\/index.php?rest_route=\/wp\/v2\/posts\/341\/revisions\/342"}],"wp:attachment":[{"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/van-daag.nl\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}