Powershell exchange 2010

Whats the best way to remove full access using powershell for a group that has full access on each mailbox in an entire OU.
techdriveAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Will SzymkowskiConnect With a Mentor Senior Solution ArchitectCommented:
Use the following command below...
$Mailboxes = Get-Mailbox -ResultSize "unlimited" -OrganizationalUnit "ou=ouname,dc=domain,dc=com"
foreach ($Mailbox in $Mailboxes) {
Remove-MailboxPermission -Identity $Mailbox -User <GroupName> -AccessRights FullAccess -InheritanceType All
}

Open in new window


Will.
0
 
techdriveAuthor Commented:
thanks
0
 
techdriveAuthor Commented:
.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.