Solved

office 365 , exchange ,

Posted on 2016-10-27
11
47 Views
Last Modified: 2016-10-27
Hi all,

how do i reverse this command , to remove permission out , instead manually remove?
many thank you in advance

Get-Mailbox -ResultSize unlimited | Add-MailboxPermission -User ServiceAccount@domain.com -AccessRights fullaccess -InheritanceType all -Automapping $false
0
Comment
Question by:VN-PC view
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
11 Comments
 
LVL 13

Expert Comment

by:Mark Galvin
ID: 41862057
Hi

So you want to remove the Full Access you gave but manually one user at a time?

Via Powershell:
Remove-MailboxPermission -Identity source@mailbox.com -User ServiceAccount@domain.com -AccessRights FullAccess
0
 

Author Comment

by:VN-PC view
ID: 41862060
Hi Mark,

I wanted remove all at one shot instead go in each mailbox account remove him out,

thanks you Mark
0
 

Author Comment

by:VN-PC view
ID: 41862064
Hi mark ,


that command seem like one account, but is there a way all, there to many mailboxes if i go that round.

Thanks
0
Technology Partners: 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!

 
LVL 40

Accepted Solution

by:
Vasil Michev (MVP) earned 250 total points
ID: 41862080
Try this:

Get-Mailbox -ResultSize unlimited | Remove-MailboxPermission -User ServiceAccount@domain.com -AccessRights fullaccess

Open in new window

0
 
LVL 13

Assisted Solution

by:Mark Galvin
Mark Galvin earned 250 total points
ID: 41862085
Well yes, the same you used the first time but use 'Remove-MailboxPermission'
0
 

Author Comment

by:VN-PC view
ID: 41862090
HI Vasil,

I did try that before but no luck, because get-mailbox don't recognized in remove-mailboxpermission .
thanks
0
 

Author Comment

by:VN-PC view
ID: 41862103
Hi all,

I can try that again , i certainly it's no go first time, but let me try again maybe mistype something.
0
 
LVL 13

Expert Comment

by:Mark Galvin
ID: 41862112
Can you screen shot the command youre using and the result please?
0
 

Author Comment

by:VN-PC view
ID: 41862130
Hi all,

PS C:\Users\admin> Get-Mailbox -ResultSize unlimited | remove-MailboxPermission -User dawson@ncbro.com -AccessRights fullaccess -InheritanceType all -Automapping $false
A parameter cannot be found that matches parameter name 'Automapping'.
    + CategoryInfo          : InvalidArgument: (:) [Remove-MailboxPermission], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Remove-MailboxPermission
    + PSComputerName        : outlook.office365.com
0
 

Author Comment

by:VN-PC view
ID: 41862156
Vasil Michev (MVP)


Yes, your command is did it , i was reserve my command and that is why mapping error popped up.

thank you all
0
 

Author Closing Comment

by:VN-PC view
ID: 41862158
Thank you all
0

Featured Post

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
In-place Upgrading Dirsync to Azure AD Connect
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question