Unable to Connect to Microsoft Exchange Server 2010 and Receive counters

  • KM03812400
  • 31-May-2021
  • 31-May-2021

Summary

Unable to Connect to Microsoft Exchange Server 2010 and Receive counters

Question

If you are unable to connect to the Microsoft Exchange Server 2010 and receive counters, make sure you have the

correct PowerShell startup parameters

Answer

1. Open PowerShell and type the following to create a default PowerShell profile applicable to all users and automatically load the Exchange snap-in:
 
if (!(test-path $profile.AllUsersAllHosts)) {new-item -type file -path $profile.AllUsersAllHosts –force}notepad $profile.AllUsersAllHosts
 
2. Add the following syntax to the $profile.AllUsersAllHosts file:
 
. $env:ExchangeInstallPath\bin\RemoteExchange.ps1
Connect-ExchangeServer –auto
 
3. Save your changes and exit PowerShell.
 
4. Restart the SiteScope service.