PowerShell Code: Get Mailboxes with Size Greater Than X

Today, I’ll show you another classic PowerShell Code for Exchange Server that will let you search for users with a mailbox size of X and above. I came across the need to do this when I had to rebalance mailboxes on Exchange Server and wanted to know which users have mailboxes over 5GB. The code below. Will show you all […]

Read more

Exchange Powershell – Find Mailbox size of users in a Distribution List

Say that I have a Distribution List called “Finance Team“. At first I will have to find out the members of the Distribution List so then I can individually find their mailbox sizes. $GroupName = Read-Host “Kindly provide the name of the Distribution Group” Get-DistributionGroupMember $GroupName | Select Name | Export-Csv c:\Members.csv -NoTypeInformation Let us see what did we do […]

Read more

Access Exchange Online via PowerShell

After recently deploying a hybrid configuration for Office 365, many email settings that were easily configurable within Office 365 portal could not be changed as these settings were being managed by on-premise Active Directory servers. To get past this restriction, the next best option is to access the Exchange Online via PowerShell. Note: PowerShell 3.0 is required. For Windows Server […]

Read more

User’s Receive a Message Stating that “User” Has Forwarded Your Meeting Request to Additional Recipients

I recently ran into a problem where some user’s were beginning to receive email messages from Exchange, informing them that their Meeting Request’s were being forwarded to additional recipients. See below for the fix.   Exchange 2007 Verify the setting is turned on or off: Get-MailboxCalendarSettings user | fl  Remove the setting: Set-MailboxCalendarSettings rscherer –RemoveForwardedMeetingNotificiations:$true        Exchange 2010/ […]

Read more

How to Delete Emails from Mailboxes in Exchange 2010 Using Search-Mailbox

Quick post today.  If you have an criteria of emails that you want to delete from all mailbox’s you can use Search-Mailbox to delete the message from users mailbox.  For example, you get hit with a virus email that has the subject “I am a virus” from the user virussender@virus.com. The below search goes through all mailbox’s and deletes any […]

Read more

How to View Disconnected Mailbox’s and Purge Disconnected Mailboxes from Exchange 2010

To view disconnected mailbox’s, essentially mailboxes that have been deleted from their user accounts, you need to first ensure that Exchange has gone through and cleaned the database.  This is done to ensure that it marks that mailbox as deleted.  If your database is MDB36, run the following command: Clean-MailboxDatabase MDB36 Exchange gives no result from the command.  But now […]

Read more

How to Apply Permissions to Public Folder and All Sub Folders in Exchange 2007/2010 Using Exchange Management Shell

If you have a public folder that your working on, and you need to apply permissions to it using the Exchange Management Shell, its pretty easy.  The command is: Add-PublicFolderClientPermission –Identity “Foldername” –user UserName –AccessRights PublishingEditor For instance, to add the user pponzeka to the folder IT with the Publishing Editor permission, the command would be the following: This works […]

Read more
1 2 3 4 9