Solved

Exchange 2010 Get-Message powershell

Posted on 2013-12-03
5
2,359 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Excellent!!

Thank you
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Check out this infographic on what you need to make a good email signature that will work perfectly for your organization.
Scam emails are a huge burden for many businesses. Spotting one is not always easy. Follow our tips to identify if an email you receive is a scam.
In this video we show how to create a User Mailbox 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 >> Mailb…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now