I am trying to manage an exchange server (2013) I learned that directly loading PSSnapin for Exchange into a powershell is not the supported way and that I should use RS-Remoting like this
$session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri "http://exchangeserver.domain.local/powershell" -Authentication Kerberos Import-PSSession $session
But when I connect to the exchange-server like that almost every object get serialized into string :/ Methods of objects (e.g. Database.DatabaseSize.ToBytes()) are not callable anymore, because serialization lost that information.
How can I use the full EMS in a remote powershell ? Is that even possible ?