Is there a way, or a work around to enable remoting for exchange.
Maybe I dont explain myself the right way. When remoting to exchange server using import-pssession, a lot of command dont work the way they work in a exchange PowerShell. Serialisation, deserialisation, full language, I didnt a lot of research but hard to get it working as if I was in exchange shell.
I do a lot of exchange migration, my goal was to do remoting form my laptop, having everything ready on my machine. most of the command I found here and there dont work in a remote session.
An example : for public folder migration, we can export information before we begin, the first 2 command work well
Get-PublicFolder -Recurse | Export-CliXML C:\PFMigration\Legacy_PFStructure.xml
Get-PublicFolderStatistics | Export-CliXML C:\PFMigration\Legacy_PFStatistics.xml
The following ran in an error
Get-PublicFolder -Recurse | Get-PublicFolderClientPermission | Select-Object Identity,User -ExpandProperty AccessRights | Export-CliXML C:\PFMigration\Legacy_PFPerms.xml
I know it related to deserialization, I am seeking for a good practice advise. How I can work around this.