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)
-
When running on Windows, Moshell uses a unix emulator known as Cygwin. Go directly to step 13 if you have already installed and configured c...
-
AMOS is a customer version of moshell, it can be purchased as an optional feature in OSSRC (available since R5.3) AMOS is identical to mos...
-
One of the RAID Controller’s battery on my Dell PowerVault MD3200 has failed today so I got a replacement part to replace it. Replacing t...
No comments:
Post a Comment