Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Removing Mailbox Access using Exchange PowerShell

Posted on 2011-03-09
2
Medium Priority
?
887 Views
Last Modified: 2012-06-21
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 $_.name –AccessRights FullAccess –User vhaperbaugub}
0
Comment
Question by:vhaperbaugub
[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
2 Comments
 
LVL 6

Accepted Solution

by:
J P earned 2000 total points
ID: 35092608
should be able to replace what is within the squiggle bracket..

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

Open in new window


reference: http://technet.microsoft.com/en-us/library/bb125153.aspx
0
 

Author Comment

by:vhaperbaugub
ID: 35094260
Thanks....That worked.
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

New style of hardware planning for Microsoft Exchange server.
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
how to add IIS SMTP to handle application/Scanner relays into office 365.
Suggested Courses

597 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