Before you start processing a bunch of Exchange objects sometimes you might want to check if they’re Mailboxes or RemoteMailboxes. The script (and explanation) is after the break. Continue reading “PowerShell: Is an Object a Mailbox or Remote-Mailbox?”
There’s a pretty simple way to test if something is a valid email address but it’s nice to wrap that around with a bit of code to test for a stream or array of values.
The function and explanation follows.Here’s the full function with an explanation (and alternative way to make it work) afterwards.Continue reading “PowerShell: Check if an Email Address is Valid”