Solved

Exchange 2010 Get-Message powershell

Posted on 2013-12-03
5
2,537 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…
The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

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