If you see an error like below on your Exchange Management Shell;
![](http://yusufgokkaya.com/wp-content/uploads/2020/02/1.jpg)
It’s mean is currently, you cannot access Exchange Servers.
Failure Code is; “Failed to connect to an Exchange server in the current site”
![](http://yusufgokkaya.com/wp-content/uploads/2020/02/2.jpg)
The solution is;
Check the IIS as below,
- Default Web Site
- PowerShell
- Basic Settings
- Test Settings
If you see the error code like “The user name or password is incorrect. ( Exception from HRESULT: 0x8007052E )”
You should change the user credentials.
![](http://yusufgokkaya.com/wp-content/uploads/2020/02/3.jpg)
To change the user credential;
Open the IIS and do below,
- Default Web Site
- PowerShell
- Basic Settings
- Connect as / Set
- Set Credentials
![](http://yusufgokkaya.com/wp-content/uploads/2020/02/4.jpg)
After this changes If you check the ISS again you will see; “The specified user credential are valid”
Then the server needs to be restarted.
![](http://yusufgokkaya.com/wp-content/uploads/2020/02/5.jpg)
After the restart, open the on Exchange Shell and check your connection.
![](http://yusufgokkaya.com/wp-content/uploads/2020/02/6.jpg)
“The Exchange server is Connected to EXC1.yusuf.local”
![](http://yusufgokkaya.com/wp-content/uploads/2020/02/7.jpg)