PowerShell tip: make errors actually stop your script.
Many cmdlets throw "non-terminating" errors. Your try/catch never fires, the loop keeps going, and you find out later that a handful of mailboxes never got updated.
Most slow small-business sites I look at have the same problem: huge images. A photo straight off a phone can be 4000px wide and several MB, then gets shown in a 1200px box.
Before any image goes on a page, I do three things:
1. Resize it to the largest size it will actually...