Is there a clean way to test if a mailbox exists on an account without having to trap for the error from a failed "get-mailbox" command?
I'm starting to write a script that will check if a mailbox exists, disable it if it does, disable the account, and move the account to a specific OU. A foreach ($user in $disableusers) kind of thing.
Thanks