Exchange Powershell Exchange and Powershell Helps, Tips, and Tricks

Archive for June, 2010

Script – Mailbox Audit

06.03.2010 · Posted in PowerShell V2, scripts

This is a script I wrote that will look for specific email accounts in an OU, and then send an email to all the people who have access to those email accounts. — Start of Script – #$ErrorActionPreference = "SilentlyContinue" $smtpServer = "[REMOVED]" $smtp = new-object Net.Mail.SmtpClient($smtpServer) $emailFrom = "mkieffer@[REMOVED]" $a = get-user -OrganizationalUnit "[REMOVED]/Corp/Email ...

Exchange – Cannot remove ACE on object … because it is not present.

06.03.2010 · Posted in Exchange, PowerShell V2

I have run into a problem while doing some routine maintenance on some shared mailboxes for the company I work for. During the maintenance process, we audit the list of users that have full mailbox rights to any shared mailbox. In the process, I was trying to remove full permissions from several user accounts. Here ...