none
[E2010] [PS] PowerShell Remoting - Canonical/Distinguished names RRS feed

  • Question

  • Hello all,

    Is there a setting to change the way object values are serialized when managing Exchange 2010 with remote PowerShell.

    When I run the following script (after importing pssession, I ommit it here) 

    $user = Get-MailUser -Identity user1

    $user.AcceptMessagesOnlyFrom[0] gives:

    ex2010.test/users/user2

    $user.AcceptMessagesOnlyFrom[0].GetType() gives:

    String

    Is there a way to get DN instead of canonical name?

    Thank you.

     

     




    Wednesday, October 5, 2011 10:46 AM