Exchange 2019:- Remove messages from a queue

Posted on
6,425 Points
Last Modified:
Experience Level: Intermediate
Edward van Biljon
Experienced Messaging Specialist with a demonstrated history of working in the information technology and services industry.
In this video we show you how to remove messages from a queue in Exchange 2019 using PowerShell. We explain the different options like "withndr" and "withoutndr" and the "whatif" option at the end of a script.

Video Steps

1. Launch Exchange Management Shell

Click on start, expand Exchange Server 2019 and right click on the Exchange Management Shell and run as administrator

2. Type in command

Type in the following command to remove a message/s: Get-Message -Server EX2019A -Filter {FromAddress -eq "<>" -and Status -eq "Retry"} | Remove-Message -withNDR
Since Azure DevOps Server 2022 finally supports a deployment on Server Core, I can replace another GUI Server in my LAB. In this write up, I will show you all the steps to get it up and running in your environment.
This document presents the Modern Active Directory project, which aims to bring a more modern view on your Active Directory, whether to view key indicators or to perform advanced searches in a simple way. With this PowerShell module that accesses …

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month