Author Posts

June 15, 2016 at 10:58 am

In our current environment we are running Exchange 2010 and Exchange 2013. I do terminations in bulk. When I do this I have to run it twice, once for each server.

Is it possible to have a remote session to the 2010 server and a second remote session to the 2013 server coexisting at the same time and process all the terminations in one batch?

If so how would it know which session to use?

June 15, 2016 at 1:15 pm

When you use Import-PSSession, you can add -Prefix. So, -Prefix 2010 or -Prefix 2013. Your commands then become Get-2010Mailbox and Get-2013Mailbox – which is how it'll know which connection to use.

June 15, 2016 at 2:19 pm

What a handy little item! I can't wait to try it. This will allow me to bring this all into one script instead of multiple ones and really have the process down pat!

Thanks