When I run the following code in Exchange PowerShell on an Exchange server it shows all the properties:
PS> Get-Mailbox Testeria | select -ExpandProperty EmailAddresses SmtpAddress : Tester_IA@contoso.com AddressString : Tester_IA@contoso.com ProxyAddressString : smtp:Tester_IA@contoso.com Prefix : SMTP IsPrimaryAddress : False PrefixString : smtp SmtpAddress : TesterIA@contoso.com AddressString : TesterIA@contoso.com ProxyAddressString : SMTP:TesterIA@contoso.com Prefix : SMTP IsPrimaryAddress : True PrefixString : SMTP SmtpAddress : TesterIA@outlook.contoso.com AddressString : TesterIA@outlook.contoso.com ProxyAddressString : smtp:TesterIA@outlook.contoso.com Prefix : SMTP IsPrimaryAddress : False PrefixString : smtp
But when I try to use Remote PowerShell on the local machine via
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri ("http://" + $Server + "/PowerShell/") -Authentication Kerberos
Import-PSSession $Session
and run the same code it show only this:
PS> Get-Mailbox Testeria | select -ExpandProperty EmailAddresses smtp:Tester_IA@contoso.com SMTP:TesterIA@contoso.com smtp:TesterIA@outlook.contoso.com
How to understand this behaviour? How to get all the properties via Remote PowerShell?
PSVersion on the local machine is 5.1.14409.1005
PSVersion on the Exchange Server is 4.0