Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

scripting in a trusted AD forests environment

$
0
0

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


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>