Solved

Exchange 2010 Get-Message powershell

Posted on 2013-12-03
5
2,604 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

MS Outlook is a world-class email client application that is mainly used for e-communication globally.  In this article, we will discuss the basic idea about MS Outlook, its advanced features, and types of MS Outlook File formats.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
how to add IIS SMTP to handle application/Scanner relays into office 365.
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

726 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