Connecting to remote powershell

What ?
Remote Powershell allows you to connect to an Exchange 2010 organization without having the 2010 management tools installed.

  • Windows Management Framework (Powershell V2) and
  • Windows Remote Management.

You have to follow these steps:

  • Store the login details of an account that has permissions to remote in. ( for example: the Exchange Service account )
    • $credentials = Get-Credential
      • If you want another user to be able to initiate a remote powershell session, run
      • Set-User –identity username –RemotePowershellEnabled $True
  • Store the session details in a variable
    • $session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionURI http://exchange-server/powershell -Credential $credentials
  • Import the session defined. This way, the server side shell will be imported in the client side shell. This can take a while.
    • Import-PSSession $session
  • Run the exchange cmdlets you want to use.
  • Once you have finished your work, remove the session.