Restoring an accidentally migrated mail user to On-Prem Exchange

We recently migrated most of our users to Office 365, and due to a miscommunication, three users that should have stayed on premises were migrated, converted to the RecipientTypeDetails RemoteUserMailbox, and had their local mailboxes disconnected. Reconnecting their mailboxes failed as they were of the wrong user type: The solution was to remove the Exchange… Continue reading Restoring an accidentally migrated mail user to On-Prem Exchange

File system rights on mounted drives in Windows

As I repeatedly state, the same object oriented design that makes PowerShell potentially powerful in complex tasks, also makes it require ridiculous verbosity on our part to make it accomplish simple ones. Today’s post is a perfect example. Consider a volume mounted to an NTFS mountpoint in a directory. Since this is an obvious afterthought… Continue reading File system rights on mounted drives in Windows

PowerShell for Unix nerds

(This post was inspired by a question on ServerFault) Windows has had an increasingly useful scripting language since 2006 in PowerShell. Since Microsoft apparently fell in love with backend developers a while back, they’ve even ported the core of it to GNU/Linux and macOS. This is actually a big deal for us who prefer our… Continue reading PowerShell for Unix nerds

Exporting mail to .PST files using PowerShell

We have one Exchange mailbox that has seen exponential growth with no good workaround to be had. I started worrying when we passed 100 GB for the single box, and by 160 GB users started getting properly annoyed by the performance when browsing the box. I spoke to the manager for the department and suggested… Continue reading Exporting mail to .PST files using PowerShell

Fixing “No DKIM keys saved for this domain” in EOP and Office365

Sometimes a newly added domain in Microsoft EOP will not let you enable DKIM from the web user interface. The only workaround I know of is to prepare the domain using PowerShell. To connect a PS session to O365, I use the following script, ripped straight from Microsoft’s documentation: After waiting for an eternity for… Continue reading Fixing “No DKIM keys saved for this domain” in EOP and Office365