

You are now all set to go and manage your Exchange Server via PowerShell. This will connect to the Exchange Server and import all necessary administration cmdlets. Then, enter this command: Import-PSSession $Session.Replace with the fully qualified domain name (FQDN) of Exchange 2016 you want to connect to. The next step is to run this command: $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri -Authentication Kerberos -Credential $Credentials.In the resulting window, provide administrative credentials. In the console, type the following command: $Credentials = Get-Credential.Start the PowerShell on the workstation.To use PowerShell to connect to Exchange 2019 or 2016:

Once you finish working with the remote PowerShell session, close it with the following command: Disconnect-ExchangeOnline Connecting to the on-premises Exchange 2019/2016 So, if your admin account has MFA enabled, you need to run Connect-ExchangeOnline -UserPrincipalName and enter your credentials in the pop-up window. If you have MFA enabled, PowerShell will not accept your credentials from a variable.

NET Framework 4.5.2 or later), Windows Server 2012 (after installing.

(which should already be installed on the supported systems) Net Framework 4.5 or later and Windows Management Framework 5.1. Note that Windows 7 and Windows Server 2008 R2 can still be used for connecting to Exchange Online, but are not recommended, since they have reached the end of extended support.
