Want to remotely execute Exchange Specific Cmdlets without having to install the exchange 2010 management console? Maybe you have a BPOS or Office 365 account you want to administrate? Then these steps are for you.

      When you connect to a remote Exchange 2010 server using a user name and password you specify, you direct the remote Shell to connect to the remote server using those credentials when it authenticates the session. The credentials can be different from your current user name and password. This is called explicit authentication. This procedure can be used even if there are no Exchange 2010 management tools installed.

  1. Click Start, point to All Programs, point to Windows PowerShell, and then click Windows PowerShell or Windows PowerShell ISE.

    Dd297932.note(en-us,EXCHG.141).gifNote:

    Windows PowerShell Integrated Scripting Environment (ISE) is the new Windows PowerShell graphical console and can be used instead of the traditional text-based PowerShell console.

  2. Enter your network credentials and store them in a variable by running the following command.
    $UserCredential = Get-Credential
  3. In the dialog box that opens, type the user name and password of the administrator account that has access to administer the Exchange 2010 server you want to connect to, and then click OK.
  4. Open the connection to Exchange 2010 by running the following command.
  5. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<FQDN of Exchange 2010 server>/PowerShell/ -Authentication Kerberos -Credential $UserCredential
  6. Import the server-side PowerShell session into your client-side session by running the following command.
    Import-PSSession $Session

After you perform this procedure, you can run Exchange cmdlets in the remote Shell.

Taken from Connect Remote Exchange Management Shell to an Exchange Server

An alternative if you DO have the EMC and EMS installed – how can we connect to the remote exchange server?

User the following syntax from within the EMS

Connect-ExchangeServer –ServerFqdn Van-ex2.contoso.com

Now you will have connections to the first server you were on *the local one* or one that was automatically selected for you, AND the new one you created. Use this cmdlet to confirm what you are and aren’t connected to

Get-PSSession

Now you can break your first connection if desired..

Remove-PSSession –id <ID# found from previous step>

Happy remoting!

Advertisements