N
NZSchoolTech
Good day,
If I open a Powershell remote session to Outlook Live and type
get-Recipient -recipientType mailboxuser, mailcontact
It returns a list of mailbox users and mail contacts as expected.
If I create a C# application to call remote powershell and pass it the same
command and parameters as above
Instead of returning a list of mailbox users and mail contacts, it returns
ONLY the list of MailUniversalDistributionGroup recipient types instead.
It looks like the only way in a C# application I can get the recipients I
want is to get all of them and iterate the collection and throw out the ones
that are not those two types that I want (as listed above).
--
If I open a Powershell remote session to Outlook Live and type
get-Recipient -recipientType mailboxuser, mailcontact
It returns a list of mailbox users and mail contacts as expected.
If I create a C# application to call remote powershell and pass it the same
command and parameters as above
Instead of returning a list of mailbox users and mail contacts, it returns
ONLY the list of MailUniversalDistributionGroup recipient types instead.
It looks like the only way in a C# application I can get the recipients I
want is to get all of them and iterate the collection and throw out the ones
that are not those two types that I want (as listed above).
--