• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 71
  • Last Modified:

office 365 , exchange ,

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
VN-PC view
Asked:
VN-PC view
  • 7
  • 3
2 Solutions
 
Mark GalvinManaging Director / Principal ConsultantCommented:
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
 
VN-PC viewAuthor Commented:
Hi Mark,

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

thanks you Mark
0
 
VN-PC viewAuthor Commented:
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
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
Vasil Michev (MVP)Commented:
Try this:

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

Open in new window

0
 
Mark GalvinManaging Director / Principal ConsultantCommented:
Well yes, the same you used the first time but use 'Remove-MailboxPermission'
0
 
VN-PC viewAuthor Commented:
HI Vasil,

I did try that before but no luck, because get-mailbox don't recognized in remove-mailboxpermission .
thanks
0
 
VN-PC viewAuthor Commented:
Hi all,

I can try that again , i certainly it's no go first time, but let me try again maybe mistype something.
0
 
Mark GalvinManaging Director / Principal ConsultantCommented:
Can you screen shot the command youre using and the result please?
0
 
VN-PC viewAuthor Commented:
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
 
VN-PC viewAuthor Commented:
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
 
VN-PC viewAuthor Commented:
Thank you all
0

Featured Post

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!

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