Exchange Powershell Exchange and Powershell Helps, Tips, and Tricks

Posts Tagged ‘get-mailboxpermission’

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 ...