Solved

office 365 , exchange ,

Posted on 2016-10-27
11
44 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
  • 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This is my first article on Expert Exchange on the Manual Method of Exporting Office 365 Mailboxes to PST format by using the eDiscovery mechanism of Office. Hope you will enjoy the article.
In-place Upgrading Dirsync to Azure AD Connect
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…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

856 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