[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

Change Access rights to a Shared Mailbox

I have created a shared mailbox in Exchange 2007 and I have added a Group "IT Support" to have access and rights to it. All this using powershell scripting.
I now need to change the Group from the "IT Support" group to the "IT Admin" group. These are two separate Groups.
So the question is:
Using the Powershell scripting, How do I remove the "IT Support" Group from the shared mailbox, or do I just leave it and add the "IT Admin" group?
0
Joe-Man
Asked:
Joe-Man
  • 3
  • 3
1 Solution
 
connectexCommented:
Could you post the script you used to add the rights? It would help me understand exactly what you've done already.

-Matt-
0
 
Joe-ManAuthor Commented:
This added the shared mailbox
new-mailbox -alias "HelpIT" -name "HelpIT Mailbox" -database "mailbox database" -OrganizationalUnit Users -shared -UserPrincipalName HelpIT@domain.com

This sets the Group "IT Support" access
get-mailbox -identity "HelpIT Mailbox" | add-mailboxpermission -user "IT Support" -accessrights 'FullAccess'

This gives the Group "IT Support" access to Personal Information for the mailbox
get-mailbox -identity "HelpIT Mailbox" | add-adpermission -user "IT Support" -accessrights:ReadProperty, WriteProperty -properties 'Personal Information' -ExtendedRights 'Send-As'
0
 
MegaNuk3Commented:
Just change "add-" to "remove-" and that should work
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
MegaNuk3Commented:
The remove will remove permissions for the "IT Support" group, then all you need to do is repeat the add- commands for your other group
0
 
Joe-ManAuthor Commented:
Are you suggesting these

get-mailbox -identity "HelpIT Mailbox" | remove-mailboxpermission -user "IT Support"

get-mailbox -identity "HelpIT Mailbox" | remove-adpermission -user "IT Support"
0
 
MegaNuk3Commented:
You can try those, but I think you will need the full command, just change the 'add' to a 'remove' in your existing commands and that should work.
0
 
Joe-ManAuthor Commented:
All worked well ..Thanks
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now