Exchange Management Shell on client computer

Sambhav Pandey 1 Reputation point
2020-11-11T15:18:48.723+00:00

Hi,

I want to run exchange cmdlets on exchange management shell (on client computer). Will it require PS remoting to be enabled on the Exchange Server machine?

Thanks,
Sambhav

Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,626 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lucas Liu-MSFT 6,176 Reputation points
    2020-11-12T03:31:00.713+00:00

    Hi @Sambhav Pandey ,
    Did you installed the Exchange management shell on client computer?

    1. If you install the Exchange management shell, according to my test, you could directly open EMS and run Exchange cmdlets. In addition, please make sure that the computer where you install Exchange Management Shell meets the system requirements of the corresponding Exchange version and has installed the required prerequisites.
      For more information: Exchange Server PowerShell (Exchange Management Shell) and Exchange Server prerequisites

    2.If not, you could following steps to connect to Exchange server using remote Powershell:

    1. Open the Windows Powershell on client computer, then run the following command and enter your credential: $UserCredential = Get-Credential

    2) Run the following commands and then you could run the Exchange cmdlet in Powershell:

    $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential  
    Import-PSSession $Session -DisableNameChecking  
    

    3) When you are finished using, please remember to run the following command line to disconnect, instead of closing the powershell window directly:

    Remove-PSSession $Session  
    

    Below screenshot is my test in me lab environment:
    39198-22222.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

  2. Khurram Rahim 1,841 Reputation points
    2020-11-11T15:27:21.253+00:00

    please check step by step guide

    https://learn.microsoft.com/en-us/powershell/exchange/connect-to-exchange-servers-using-remote-powershell?view=exchange-ps

    Hope answer the question if issue resolve don't forget to accept answer

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.