Share via


Denver based PowerShell user group

User groups are a fantastic way to meet up with people that share similar interests. We have setup consistent meeting times/location for the Denver based User Group to discuss PowerShell. While there are many User Groups on many topics, this one is focused on PowerShell.

The Denver PowerShellers Group currently uses the meetup.com website. There are many options when it comes to coordinating with others, especially with the murid of online choices of today’s technology. So if you can, get together and share common interests and meet other people. A community is smarter than a single individual.

• On May 7th, 2018, 6-8 pm: We'll be talking about Visual Studio Code and how to leverage the recommended replacement application for Windows PowerShell ISE.

• What to bring
Bring your willingness to learn and questions about PowerShell. 

• Link to meeting: https://www.meetup.com/Denver-PowerShellers/events/wbdmhpyxhbkb/

Comments

  • Anonymous
    May 03, 2018
    Hello Mike,I need a help..I want to get the last received email, current time stamp and difference between them. I want this for a single mailbox using powershell.Can you help?
    • Anonymous
      May 03, 2018
      Something might already exist in one of the PS repositories, but I haven't look. However, lets see if the community can also help. I have some code posted below that might be what you're looking for, at least a start in the right direction. Can anyone else continue to provide a solution?Unfortunately, no pretty colors in this format, but if you copy/paste it into ISE, or VSC, it'll make more sense. #region Search by domain for Exchange on premises#All messages with recipients like a domain.Get-MessageTrackingLog -ResultSize Unlimited -Start (Get-date).AddMonths(-1) -End (Get-Date) | Where-Object {$.recipients -like "*@Contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv \someserver\someshare\ExchangeLogResults_ToUsersOfContoso$(get-date -f dd-MM-yyyy)services.csv#All messages with recipients not like a domain.Get-MessageTrackingLog -ResultSize Unlimited -Start (Get-date).AddMonths(-1) -End (Get-Date) | Where-Object {$.recipients -notlike "*@Contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv C:\ExchangeLogResults_ToUsersNotOfContoso.csv#All messages from senders of a domain.Get-MessageTrackingLog -ResultSize Unlimited -Start (Get-date).AddMonths(-1) -End (Get-Date) | Where-Object {$.sender -like "*@Contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv C:\ExchangeLogResults_SentFromContoso.csv#All messages from senders not of a domain.Get-MessageTrackingLog -ResultSize Unlimited -Start (Get-date).AddMonths(-1) -End (Get-Date) | Where-Object {$.sender -notlike "*@contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv C:\ExchangeLogResults_NotSentFromContoso.csv#endregion#region Search by domain in EXO#All messages with recipients like a domain.Get-MessageTrace -Start (Get-date).AddDays(-30) -End (Get-Date) | Where-Object {$.recipients -like "*@contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv \someserver\someshare\ExchangeLogResults_ToUsersOfContoso$(get-date -f dd-MM-yyyy)services.csv#All messages with recipients not like a domain.Get-MessageTrace -Start (Get-date).AddDays(-30) -End (Get-Date) | Where-Object {$.recipients -notlike "*@contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv C:\temp\ExchangeLogResults_ToUsersNotOfContoso.csv#All messages from senders of a domain.Get-MessageTrace -Start (Get-date).AddDays(-30) -End (Get-Date) | Where-Object {$.sender -like "*@Contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv C:\ExchangeLogResults_SentFromContoso.csv#All messages from senders not of a domain.Get-MessageTrace -Start (Get-date).AddDays(-30) -End (Get-Date) | Where-Object {$.sender -notlike "*@contoso.com"} | Select-Object Timestamp,SourceContext,Source,EventId,MessageSubject,Sender,{$.Recipients} | Export-Csv C:\ExchangeLogResults_NotSentFromContoso.csv#endregion