In my script I need to know whether an account is a Mail-User
, Mail-Contact
or licensed user account.
Presently I have to know this before-hand
The RecipientTypeDetails specifies the type of recipients returned.
You can select from the following values with Get-Recipient:
What I am understanding from your case is that you need UserMailbox, User , MailUser , MailContact
I don't have an exchange setup right now. BUt you can set off with these value. It falls under Microsoft.Exchange.Data.Directory.Recipient.RecipientTypeDetails[]