Solved

Exchange 2010 Get-Message powershell

Posted on 2013-12-03
5
2,493 Views
Last Modified: 2013-12-04
Exchange 2010 Get-Message powershell

I need to query exchange queue for the messages that have the date expired but are still in the queue.
I used the powershell below, but it retrieves the date Received, I am looking for the display of the expiration date of the message.

Get-Message -IncludeRecipientInfo -Filter {Status -eq "Retry"} | Format-Table FromAddress,Recipients,Subject,Da
teReceived

Thank you
0
Comment
Question by:jskfan
  • 3
  • 2
5 Comments
 
LVL 37

Assisted Solution

by:Jamie McKillop
Jamie McKillop earned 500 total points
ID: 39693763
Hello,

You want the ExpirationTime

Get-Message -IncludeRecipientInfo -Filter {Status -eq "Retry"} | Format-Table FromAddress,Recipients,Subject,DateReceived,ExpirationTime

-JJ
0
 

Author Comment

by:jskfan
ID: 39693870
it works...Thanks.
I wonder if there is a way to display the content of the fields without being truncated ?
0
 

Author Comment

by:jskfan
ID: 39693876
it is showing this way:

  Subject
  -------
. Undeliverable: You'r...
. Undeliverable: Répon...
. Undeliverable: Répon...
. Undeliverable: Follo...
. Undeliverable: Follo...
. Undeliverable: Répon...
. Undeliverable: Eonom...
. Undeliverable: Répon...
. Undeliverable: Répon...
. Undeliverable: Répon...
. Undeliverable: Répon...
. Undeliverable: Répon...
0
 
LVL 37

Accepted Solution

by:
Jamie McKillop earned 500 total points
ID: 39695384
Not in a table format. You could display it in list format:

Get-Message -IncludeRecipientInfo -Filter {Status -eq "Retry"} | select FromAddress,Recipients,Subject,DateReceived,ExpirationTime

-JJ
0
 

Author Closing Comment

by:jskfan
ID: 39696069
Excellent!!

Thank you
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question