20+ Handy PowerShell Exchange Scripts
Disable-IEXUser:
Disable Active Directory user, move it to specified location and hide it from the address lists.
Get-IEXAvailableSpace:
Retrieve available space in the database(s) on a mailbox server.
Get-IEXClusterNode:
Retrieve a node in clustered mailbox server (CMS).
Get-IEXCurrentRole:
Retrieve the role of the currently logged on user.
Get-IEXDatabaseQuotaStatistics:
Retrieve all user mailboxes that have custom database quota values and extend the results with custom properties.
Get-IEXDatabaseSize:
Retrieve database size. It must be run on Exchange server.
Get-IEXDatabaseStatistics:
Retrieve database info.
Get-IEXEmailAddressOwner:
Find who owns an email address.
Get-IEXEmailAddressReport:
Enumerate email addresses.
Get-IEXForwardMailbox:
List users with email forwarding enabled (with or without delivering a copy to the original recipient).
Get-IEXInactiveMailbox:
Retrieve inactive mailbox by checking the latest email in SentItems folder.
Get-IEXLastSendAndReceivedDate:
Retrieve the newest/oldest email item dates for each mailbox.
Get-IEXMailboxAddressCount:
Get email addresses count for all users.
Get-IEXMailboxCountReport:
Get mailbox count per mailbox database.
Get-IEXMailboxFolderStatistics:
Extend MailboxFolderStatistics object, including Newest and Oldest Item Received Date members in days.
Get-IEXMailboxStatistics:
Retrieve extended mailbox statistics information.
Get-IEXSendAsPermission:
Retrieve the users that have "Send As" permission.
Get-IEXTip:
Enhanced built-in function Get-Tip with Online switch to list online version of 'Exchange Management Shell Tips of the Day'.
New-IEXAddressList:
Create new address list from distribution group.
New-IEXMailboxFromCsv:
Create mailbox using data from CSV file.
New-IEXTestMailbox:
Use the function to create a test user in the Active Directory and mailbox-enable this new user.
Purge-IEXMailbox:
Permanently delete mailbox(s) from a database.
Remove-IEXDisabledUser:
Delete all disabled user accounts and associated mailboxes (or mark them for removal).
Set-IEXEmailAddress:
Add/remove email address. Set it as primary optionally.
Test-IEXDistinguishedName:
Check the validity of distinguished name string.
Test-IEXEmailAddress:
Check the validity of an email address.
Test-IEXEmailAddress2:
Check the validity of an email address using .NET Framework method.