If you see this error when you try to run the Exchange 2013 power-shell..
+ FullyQualifiedErrorId : 1312,PSSessionOpenFailed
Exception calling “FindAll” with “0” argument(s): “Unknown error (0x80005000)”
At C:\Program Files\Microsoft\Exchange Server\V15\bin\ConnectFunctions.ps1:253 char:2
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : COMException_AutoDiscoverAndConnect : No Exchange servers are available in any Active Directory sites. You can’t connect to remote
Powershell on a computer that only has the Management Tools role installed.
At C:\Program Files\Microsoft\Exchange Server\V15\bin\ConnectFunctions.ps1:45 char:4
+ _AutoDiscoverAndConnect $credential $Forest -useWIA:$useWIA -ClientApplicatio …
It is because you have not logged into your domain and you have logged into the Exchange 2013 server as a local user. To reslove this you can either log in again as a domain user with valid credentials or you can.
Right click the Exchange Powershell App from the gui formerley known as “metro”.
Now at the bottom of the screen the menu bar will appear as seen below, simply select run as Administrator then enter the Domain credentials.
Exchange 2013 Powershell will now run fine.