Wednesday, December 13, 2017

delete message from subject

need csv file with the title Alias

import-csv usercnit.csv | ForEach { Search-Mailbox  $_.alias  -Force:$True -SearchQuery 'Subject:"private message"' -DeleteContent  }

 

Top 20 mailbox size

 foreach($database in get-mailboxdatabase) {Get-Mailbox -ResultSize Unlimited -database $databas

e.name| Get-MailboxStatistics | Sort-Object TotalItemSize| Select-Object DisplayName,database,TotalItemSize -last 20}

Which users received a quota message

Get-TransportServer | Get-MessageTrackingLog -ResultSize Unlimited -Start “11/21/2012? -MessageSubject “your mailbox is” –EventID DELIVER | Select TimeStamp, Recipients, MessageSubject

Out of office

Set-MailboxAutoReplyConfiguration This email address is being protected from spambots. You need JavaScript enabled to view it. –AutoReplyState Scheduled –StartTime “11/11/2012” –EndTime “12/110/2012” –ExternalMessage “External OOF message here” –InternalMessage “Internal OOF message here”

 

For detailed syntax and parameter descriptions, see Set-MailboxAutoReplyConfiguration (Applies to Exchange Server 2010 SP1).

This command retrieves auto-reply settings for a mailbox.

Get-MailboxAutoReplyConfiguration This email address is being protected from spambots. You need JavaScript enabled to view it.

 

This command disables auto-reply configured for a mailbox:

Set-MailboxAutoReplyConfiguration This email address is being protected from spambots. You need JavaScript enabled to view it. –AutoReplyState Disabled –ExternalMessage $null –InternalMessage $null

 

Login