With the attack on RDP getting more and more each day, many Admins are forced to use remote tools to get onto servers.

Managing your exchange 2019 server or legacy servers does not require you to login to the desktop, you can use remote PowerShell and because the Exchange Admin Center is web based, it couldn’t have been easier.

Firstly, you need to ensure that WinRM is listening on the server and also have configured your URL’s to get to the EAC but PowerShell can do everything the EAC can do and more.

To login to remote PowerShell, launch PowerShell on your Windows 10 client for example and type in the first command:

  • $UserCredential = Get-Credential

You will be prompted for credentials, enter in your admin account, the window will appear as per below:

Now enter in the next command to create a new-PSSession to your exchange Server:

  • $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://ex2019.collabpro.com/PowerShell/ -Authentication Kerberos -Credential $UserCredential

Once you have pressed enter, you should be taken back to the prompt.

Now enter in the final command:

  • Import-PSSession $Session

Once you do that a green bar will appear and load all the cmdlets you can use.

And now you can run remote commands without being logged into the server.

Hope it helps.