I think all of the Exchange comandlet wont honor those variables. extremely bad, when you want to find misconfigured ones. get-mailuser is the same. found no way to extract warnings.
you have to look at the patterns and, eg two prim mail addresses and find them that way or scroll the whole ps window...bad if you have thousands of mail users
anyone got that working? get-mailuser -warningvariable $wv