Exchange Remoting missing information

I'm trying to build a script that will get information from Exchange

Here's an example to my problem:

When I run the $exServer = get-ExchangeServer command on an Exchange server, All values are within $exServer

When I write: $exServer.AdminDisplayVersion
I get the result:

Major : 15
Minor : 0
Build : 1156
Revision : 6
FilePatchLevelDescription :


When I write: $exServer.AdminDisplayVersion.Major

I get the result: 15


And when I try to make it remoting
The result is different:

$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri Exchange_Server_Name/PowerShell -Authentication Kerberos 
$exServer = Invoke-Command -Session $session -ScriptBlock {Get-ExchengeServer}


When I write: $exServer.AdminDisplayVersion

I get the result: Version 15.0 (Build 1156.6)

There is no major at all

(And this is just an example)


I would highly appreciate the help, I have been trying to solve this for quite some time

Parents Reply Children
No Data