{"id":1545,"date":"2015-02-05T19:39:54","date_gmt":"2015-02-05T19:39:54","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1545"},"modified":"2015-02-05T19:39:54","modified_gmt":"2015-02-05T19:39:54","slug":"giving-one-user-access-to-anothers-mailbox-via-powershell","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1545","title":{"rendered":"Giving one user access to another&#8217;s mailbox via PowerShell"},"content":{"rendered":"<p>There are plenty of reasons why you might want to give one user access to another user\u2019s mailbox. The first user may be in the hospital, or under HR review, or maybe they\u2019ve been dropping the ball lately and management need to make sure that certain projects have been followed up on. It\u2019s not really our job to care. The fact is, Bill in management has requested that you give Paul Stanley access to Gene Simmon\u2019s mailbox, and for various reasons, logging on to Gene\u2019s mailbox to set these permissions up is not a good option. For one, you\u2019d only be able to delegate access to certain primary folders, not to the whole mailbox, and second, you\u2019d have to know Gene\u2019s password to do that. Because you are a smart admin, you tell Bill you can take care of it easily from the server. And here\u2019s how you do it with Exchange 2007 or Exchange 2010:<\/p>\n<p>Using this powershell command, you can give one user the permission to open and view another user\u2019s entire mailbox. They won\u2019t be able to send mail from that mailbox though, unless you add the SendAs permission:<\/p>\n<blockquote><p><strong>Add-MailboxPermission user1 -User user2 -AccessRights fullaccess<\/strong><\/p><\/blockquote>\n<p>So if you wanted to give Paul Stanley access to Gene Simmons\u2019 mailbox, you would do this:<\/p>\n<blockquote><p><strong>Add-MailboxPermission gsimmons -user pstanley -AccessRights fullaccess<\/strong><\/p><\/blockquote>\n<p>To add sending functionality, you would do this:<\/p>\n<blockquote><p><strong>Add-MailboxPermission gsimmons -User pstanley -AccessRights sendas<\/strong><\/p><\/blockquote>\n<p>Make sure you run the Exchange Management Shell as Admin (escalated) or you may not get the results you were expecting.<\/p>\n<p>If you want to verify the permissions you\u2019ve given Paul, you can run this command:<\/p>\n<blockquote><p><strong>Get-MailboxPermission gsimmons -User pstanley | fl<\/strong><\/p><\/blockquote>\n<p>After you tell Bill that you\u2019ve taken care of it, he asks you what Paul is supposed to do to view the mailbox. You send him the following instructions:<\/p>\n<p>In Outlook, go into Tools -&gt; Account Settingss and open up the properties on your Exchange email account. Choose More Settings, and when you get to the tabbed window, choose the Advanced tab.<\/p>\n<p>On the Advanced tab, you will see the option to open additional mailboxes. Click Add and type the name of the user whose mailbox you want to open. In this case, Paul could type \u201cGene Simmons\u201d or \u201cgsimmons\u201d. OK all the way out, and you should see another root mailbox for Gene Simmons added to Paul\u2019s Outlook.<\/p>\n<p>And yes, this can be done in the Exchange Management Console, but PowerShell is quicker!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are plenty of reasons why you might want to give one user access to another user\u2019s mailbox. The first user may be in the hospital, or under HR review, or maybe they\u2019ve been dropping the ball lately and management need to make sure that certain projects have been followed up on. It\u2019s not really [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,22,58,59],"tags":[],"class_list":["post-1545","post","type-post","status-publish","format-standard","hentry","category-exchange-2007","category-exchange-2010","category-exchange-2013","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1545"}],"version-history":[{"count":2,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1545\/revisions"}],"predecessor-version":[{"id":1547,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1545\/revisions\/1547"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}