Removing Mailbox Access using Exchange PowerShell

How do I modify this script to remove my access after I'm done with the list of mailboxes:

Import-CSV "mailboxsizes\test1.csv" | ForEach{Add-MailboxPermission –ID $ –AccessRights FullAccess –User vhaperbaugub}
Who is Participating?
J PConnect With a Mentor Commented:
should be able to replace what is within the squiggle bracket..

Import-CSV "mailboxsizes\test1.csv" | ForEach{Remove-MailboxPermission -ID $ -User vhaperbaugub -AccessRights FullAccess -InheritanceType All}

Open in new window

vhaperbaugubAuthor Commented:
Thanks....That worked.
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.