Finding messages sent to a distribution group in Exchange message tracking.

It’s pretty easy to use the get-messagetrackinglog cmdlet to find what mail was sent to a particular mailbox and by whom but what if you wanted to search for emails sent to a distribution list to make sure they were indeed being sent there.  I had a distribution list today that someone said they weren’t receiving any emails sent to it.  It was caused by another issue but the message tracking log allowed me to get a better idea of what was actually being sent to the distribution group.

capture

So if for some reason you want to find out what is being sent to a distribution group
see the PowerShell below.

Get-MessageTrackingLog -resultsize unlimited -EventID Expand | ? {$_.RelatedRecipientAddress -like "distributiongroup@domain.com"} | ft Timestamp,Sender,MessageSubject -Autosize
Advertisements

Printer Jobs stay as “Sent to Printer”

I had an issue today where a printer would print but the print jobs would just continue to fill up the queue even after clearing them out.  I was running server 2008 R2 on this print server so  the first thing I tried was the hotfix from here https://support.microsoft.com/en-us/kb/2906850.  This applies to Windows 7 and 2008 R2.   I wondered if it wouldn’t fix the issue as it has to do with deny permissions on manage documents.  I also found a technet issue  that referenced that if creator owner rights to manage documents are removed printer issues could occur.  Turned out that wasn’t the issue either as Creator Owner were right where they should be.  One user in the same forum referenced that his issue was caused by a WSD port being configured for the printer instead of TCP/IP.  Sure enough adding the proper TCP/IP port solved the issue.  WSD ports are great for home and small environments but I don’t really trust them in an enterprise environment

.  capture