PowerShell: Connect to the Security & Compliance Center

I had to recently do some eDiscovery work in the Security and Compliance Center (I'll post about that next, there was some cool PowerShell in there too 🙂 ), and as I often do, I turn to PowerShell to automate the process - or at least make it easier for me to do more things … Continue reading PowerShell: Connect to the Security & Compliance Center

PowerShell: Connect to Exchange Online – MFA Style

I've been using my Exchange Online connection script for some time now, and I love it - however, one of the biggest failings of that PowerShell module is that it doesn't support MFA, which is becoming more common as a requirement as we go along. Thankfully, Microsoft has released a new PowerShell module for connecting … Continue reading PowerShell: Connect to Exchange Online – MFA Style

PowerShell: Connect to Exchange Online

I know there's a number of scripts out there that can handle automating (or at least simplifying the process of connecting to Exchange Online - I've realized over the years, though, that there's a number of tips and tricks that I've adopted to make my day to day life easier. Here's one of them… I … Continue reading PowerShell: Connect to Exchange Online

Unable to connect to Exchange Online Shell

Access Denied (No soup for you!) I've been using this script to streamline my connection to the Exchange Online Shell, and it's been working well for me - until recently when I ran into this weird "Access Denied" error: As you can imagine, I started out by troubleshooting issues with my account, trying to figure … Continue reading Unable to connect to Exchange Online Shell

.TrimEnd removes too many characters

I'm working on a migration project where I need to create temporary accounts for each user that I'm going to be migrating (long story, don't ask!). I wanted a way to create the temporary account based on the real user name, have them easily identifiable as belonging to that user, and then make sure to … Continue reading .TrimEnd removes too many characters