728x90

To start the remote PowerShell session with Exchange 2013:

  1. Start the PowerShell console on the workstation.
  2. In the console enter the following command:
    $Credentials = Get-Credential

    This brings up a new window where you need to enter your administrative credentials.

  3. In the console enter another command:
    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<Exchange 2013 CAS FQDN>/PowerShell/ -Authentication Kerberos -Credential $Credentials

    Replace the <Exchange 2013 CAS FQDN> part with the address of your CAS role server.

  4. The next command is:
    Import-PSSession $Session

    It connects to the Exchange Server and imports all necessary server administration cmdlets.

You are now ready to manage your server with PowerShell.

When you finish your work close and remove the remote connection session with the following command:

Remove-PSSession $Session

728x90

+ Recent posts