Create Inbox Rules in PowerShell

Let’s say you want to create in Inbox Rule and you don’t want to (or can’t) use Outlook to do it. Who cares why, right? You just don’t. $ReasonsWhy = “Not Relevant” You can use the New-InboxRule to move, copy, delete, forward, classify…whatever…newly received messages, just like you can if you created the rule through Outlook’s wizard. You can’t do quite everything in PowerShell that can be done […]

Read Me Leave comment

Add a Prefix to Differentiate On-Prem from Cloud Exchange Cmdlets

If you use PowerShell to manage both on-prem and cloud Exchange resources, you can manage both in the same console by adding a prefix to the cmdlets of one or the other. It’s easier to add the prefix for Exchange Online cmdlets, so I’ll show you that. Simply copy and paste this code into the on-prem Exchange Management Shell to connect to Exchange Online and prefix the […]

Read Me Leave comment

Faster Exchange Online Message Trace via PowerShell

If you submit a message trace with a custom date via the Exchange Online admin center, you’ll see this message: From there, it can take anywhere from a few minutes to a few hours for your search results to be ready. Or… You can pop over to PowerShell and, after connecting to Exchange Online, run your trace like this: Get-MessageTrace -StartDate 3/22/2017 -EndDate 4/3/2017 -RecipientAddress email@address.com […]

Read Me Leave comment

Get a Report of All Inactive Office 365 Mailbox Users

This PowerShell script will give you a report of all of your Office 365 mailbox users who haven’t logged in for any given number of days. Once you’ve saved the script to a .ps1 file on your workstation or server, you can run it with just the script name or you can include the number of days inactive as a command-line option. the command-line option is especially […]

Read Me Leave comment

A Primer on SPF Records

Yesterday there were a million and one web pages on Sender Policy Framework. Today there are a million and two. When I was researching SPF record syntax for some changes in my email routing, I couldn’t find a single page that gave all the information I needed. I hope this one will save you some time. Sender Policy Framework is a quick-and-dirty method for using […]

Read Me Leave comment

Migrating Distribution Groups to Office 365, part 5

In the previous installments of this series on migrating distribution groups from Microsoft Exchange on-premises to Exchange Online, I covered these four steps: ► Part 1 – Overview of the process I used to migrate my Exchange distribution groups to Office 365. ► Part 2 – Exporting your on-premises distro group settings to CSV files. ► Part 3 – Importing your group settings from the […]

Read Me Leave comment

Migrating Distro Groups from Exchange to Office 365, part 4

In steps 4 and 5 of part one I wrote, 4. Delete on-premises groups. After verifying that I had all the data I needed to rebuild them in the cloud (or on-premises if necessary), I removed the original groups… 5. Rename and address online groups. I wrote a third PowerShell script (Address_DistroGroup.ps1) that renames the new online groups to the old on-premises group names and […]

Read Me Leave comment