Remove a message from Mail Queue
Remove-message -filter {FromAddress -eq “testuser@mmx.com”} -WithNDR $false
Get-Message -queue "ny-cas-2k8\319045" | remove-message -Confirm:$false
Send an Email from PowerShell v1.0
PS C:\> $smtp = New-Object Net.Mail.SmtpClient("your-cas-server.mmx.com")
PS C:\> $smtp.Send("sender@mmx.com","recipient@mmx.com","Test Email","This is a test")
Send an Email from PowerShell v2.0
PS C:\> $PSEmailServer = "your-cas-server.mmx.com"
PS C:\> Send-MailMessage -From "exchange-reports@mmx.com" -To "zawhtet@mmx.com" -Subject "Test email" -Body "This is a test email"
----------------------------------------------------------------------------------
Get-MailboxDatabase 'Mailbox-Dbase-1' | Get-MailboxStatistics | Sort totalitemsize -desc | Export-CSV C:\Mailbox-Stat.csv
Subscribe to:
Post Comments (Atom)
-
1. Go to http://www.vmware.com/patchmgr/download.portal and login with your VMWare account. Download following files. - upgrade-from-E...
-
A Windows 7 Ultimate Installation can normally not change into a minor version of "Windows 7 Home Premium" or "Professiona...
-
1. Download and install ESXi Server VMware ESXI-5.0.0-469512-STANDARD.x86_64.iso 2. Install Vsphere Client VMware-viclient-all-5.0.0-45...
No comments:
Post a Comment