HOTSPOT
You need to recommend which command must be run to remove the email notifications from all of the servers if App1 malfunctions again.
Which command should you recommend? (To answer, configure the appropriate options in the answer area.)
Hot Area:
Explanation/Reference:
Explanation:
Powershell Commands and Piping
The output of the initial command is an input into the next command in the sequence.
The ResultSize parameter specifies the maximum number of results to return. If you want to return all results that match the query, use unlimited for the value of this parameter.
Get-TransportService
Can you this command to obtain a listing of mailbox servers in the organisation.
Use the Get-TransportService cmdlet to view the transport configuration information for the Transport service on Mailbox servers or for Edge Transport servers.
Example 1
This example provides different results depending on the server role on which it’s run. When you run this command on an Edge Transport server, it provides a configuration summary for the local server. Otherwise, it displays a list of all Mailbox servers in your organization.
Get-TransportService
Example 2
This example retrieves the detailed transport configuration information for the Transport service on the Mailbox server named Mailbox1.
Get-TransportService Mailbox1 | Format-List
Get-Message
Related to message queue
Use the Get-Message cmdlet to view the details of one or more messages in queues on Mailbox servers or Edge Transport servers.
EXAMPLE 1
This example displays detailed information about all messages queued on the local server and received from any sender at the contoso.com domain.
Get-Message -Filter {FromAddress -like “*@contoso.com”} | Format-List
Get-Queue
Use the Get-Queue cmdlet to view configuration information for queues on Mailbox servers or Edge Transport servers.
EXAMPLE 1
This example displays detailed information for all queues on the Mailbox server on which the command is run.
Get-Queue | Format-List
EXAMPLE 2
This example lists the queues that contain more than 100 messages.
Get-Queue -Filter {MessageCount -gt 100}
Remove-Message
Use the Remove-Message cmdlet to delete a message from a queue on a Mailbox server or an Edge
Transport server.
EXAMPLE 1
This example removes all messages that meet the following criteria without generating NDRs:
The messages are sent by the sender [email protected].
The messages are queued on the server Server1.
Remove-Message -Server Server1 -Filter {FromAddress -eq “[email protected]”} -WithNDR $false
NOT Redirect-Message, Suspend-Message
Need to remove the email notifications from all of the servers
NOT GET-QUEUEDIGEST
Need to obtain information about the amount of mailservers in this organisation.
Use the Get-QueueDigest cmdlet to view information about message delivery queues across database availability groups (DAGs) Active Directory sites, or Active Directory forests in your organization.
Example 1
This example returns information about all queues in the DAG named DAG01.
Get-QueueDigest DAG01
NOT SUSPEND-QUEUE
Not needed in this scenario
The Suspend-Queue cmdlet stops processing on a queue that has a status of Active or Retry
NOT GET-MESSAGETRACKINGLOG
Not needed in this scenario
Use the Get-MessageTrackingLog cmdlet to search for message delivery information stored in the message tracking log.
EXAMPLE 1
This example searches the message tracking logs on the Mailbox server named Mailbox01 for information about all messages sent from March 13, 2013, 09:00 to March 15, 2013, 17:00 by the sender [email protected].
Get-MessageTrackingLog -Server Mailbox01 -Start “03/13/2013 09:00:00” -End “03/15/2013 17:00:00” –
Sender “[email protected]”
NOT GET-MESSAGETRACKINGLOGREPORT
In Microsoft Exchange Server 2013, the message tracking log is a detailed record of all message activity as messages are transferred to and from the Transport service on Mailbox servers, mailboxes on Mailbox servers, and Edge Transport servers.
You can use the Get-MessageTrackingLog cmdlet in the Exchange Management Shell to search for entries in the message tracking log by using specific search criteria.
NOT RESUME-QUEUE
Not needed in this scenario
Use the Resume-Queue cmdlet to restart processing for a suspended queue on a Mailbox server or an Edge
Transport server.
NOT SEARCH-MESSAGETRACKINGREPORT
Use the Search-MessageTrackingReport cmdlet to find the unique message tracking report based on the search criteria provided.
You can then pass this message tracking report ID to the Get-MessageTrackingReport cmdlet to get full message tracking information. For more information, see Get-MessageTrackingReport. The message tracking report cmdlets are used by the delivery reports feature.
Steps
1. Get-TransportService obtains a listing of all mailservers in the exchange organisation
2. Get-Queue displays detailed information of the queue on these mailservers
3. Get-Message displays details of the messages in these queue on these mailservers
4. -ResultSize unlimited | Where {$_.Subject -eq “System Alert: Sales Database Reaching Capacity”} |
Remove-Message -WithNDr $False
This statement returns an unlimited listing of emails with a subject of “System Alert: Sales Database
Reaching Capacity”} and removes the ones that do not have a No Delivery Notification attached to them.
(NDR – non-delivery report (NDR) delivery status notification (DSN) messages in Microsoft Exchange Server 2013).
http://technet.microsoft.com/en-us/library/aa998553(v=exchg.141).aspx