Dueling PS Remote sessions

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Juli Juli 3 months, 1 week ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43020
    Profile photo of Juli
    Juli
    Participant

    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?

    #43051
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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.

    #43087
    Profile photo of Juli
    Juli
    Participant

    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

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.