Hello
I'm in charge of a complex operation of Exchange 2010 cross forest migration (users and mailboxes).
The process requires many steps in both forests such as:
1. Deleteing mail contact in target forest.
2. Disabling linked mailbox in source forest and enabling the user account
3. performing
Prepare-MoveRequest.ps1 in source domain
4. Adding addresses
5. running the move request
and more....
I would like to automate the process as much as possible, and run it from a single server console (at the target forest).
The real question here is how can I perform remote powershell commands on both Exchange servers (Source server and Target server)
within the same script / commands.
How do I start a remote powershell session to the target Exchange server and source Exchange server and switch between both
in the same script back and forth ? and how do I terminate those sessions when I'm done ?
Thanks