PowerShell concept is similar to Unix command shell, Powershell allows you to execute all tasks in the Exchange Admin Center, and this is how it works behind the scenes. Pipeline result from one command to another will help you to write scripts and share it in a small text file instead of going step by step with the interface.
Exchange Management Shell can be connected using the following method.
1. Access from Exchange Server.
Remote Desktop or login to Exchange Server locally and then open Exchange Server Management Shell.
2. Admin Server or Workstation.
You can install and setup Exchange Administration tool in your workstation or Admin PC where you do your administration related task. It will help you keep away from multiple remote desktops logged in a highly available Exchange Server environment.
Step 1: Install Visual C++ Redistributable in Admin Workstation Download
Step 2: Mount Exchange Server ISO and run setup file on Admin Server or Workstation you need to install the Admin tool.
Step 3: Continue the wizard until you reach the installation options. Select Management tool and Install Windows feature option, then click next.
Step 4: Prerequisite analysis will be checked to verify that setup. Proceed to Install the Management Tool once it completed.
Step 5: Once the installation finished, close the wizard and open Exchange Management Shell from the start menu.
3. Access from PowerShell (No need to install Admin tool)
If you don't have the Exchange management tools installed on the local computer, you can use Windows PowerShell to create a remote PowerShell session into an Exchange Server.
Set-ExecutionPolicy RemoteSigned
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://<ServerFQDN>/PowerShell/ -Authentication Kerberos -Credential $UserCredential
Import-PSSession $Session -DisableNameChecking
Get-Mailbox
Comments