We help IT Professionals succeed at work.

Remove users from exchange mailbox

techdrive
techdrive asked
on
Medium Priority
407 Views
Last Modified: 2012-05-11
I am trying to get this script to remove users with send as and full access permission to a certain mailbox. For some reason this is not working and wanted some assistance please.

$i=Get-content "c:\temp\script.txt"

Foreach-Object {

Remove-MailboxPermission -Identity "mailbox" -User $_. -AccessRights FullAccess -whatif
}

Comment
Watch Question

PowerShell Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks and as usual you are a genuis
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.