On-Premises Exchange Management : Remotely

If you are managing Exchange servers you should not be logging into the servers via RDP to manage them, you can do it all remotely with PowerShell which is how servers should be managed, to this will tell you now to accomplish this simple task.

First you need to download the Exchange server install and only install the Management tools from the main setup to your computer as below:

WARNING : DO NOT install the mailbox/transport role as that will make that computer you are using a Exchange server - this is not the intention of this guide!


Once you have the management pack installed and you search for "Exchange" you will notice you have a "Exchange Management Shell" option this is how you management Exchange remotely.



You should NOT be using you administrative account to do your day job, that is a bad idea, so if you run this as it stands you will get connection issues with the error saying:

New-PSSession : [exchange.bear.local] Processing data from remote server exchange.bear.local failed with the
following error message: [ClientAccessServer=exchange,BackEndServer=exchange.stwater.intra,RequestId=d41056e9-f142-4f64
-af39-83e9f64c96b9,TimeStamp=05/03/2024 08:21:25]
[AuthZRequestId=58044874-5b30-48ec-84db-427f0fba734a][FailureCategory=AuthZ-CmdletAccessDeniedException] The user
"bear.local/Users/lee.croucher" isn't assigned to any management roles. 

This message is telling you that your normal user account has no roles assigned to Exchange which should be correct, so once started press Ctrl+C to cancel the automated connection process then you need to login using these commands as a different user:

 $UserCredential = Get-Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://exchange.bear.local/PowerShell/ -Authentication Kerberos -Credential $UserCredential

Import-PSSession $Session -DisableNameChecking

That should look like this:

When you are done, remember to end the PowerShell session from the server with this:

Remove-PSSession $Session

Previous Post Next Post

Ω†Ω…ΩˆΨ°Ψ¬ Ψ§Ω„Ψ§ΨͺΨ΅Ψ§Ω„