< -- BuySellAds Ad Code ALLEN -->

Exchange 2013 Powershell Error – No Exchange Servers Are Available In Any Active Directory sites

If you see this error when you try to run the Exchange 2013 power-shell..

+ CategoryInfo          : OpenError: (System.Manageme….RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotin
gTransportException
+ 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
+     $search.FindAll()
+     ~~~~~~~~~~~~~~~~~
+ 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.

powershell run as administrator

 

Exchange 2013 Powershell will now run fine.

 

Allen White

Allen is an IT Consultant and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5, 6 and HP ASE, AIS - Network Infrastructure.

Leave a comment

Categories

Vote!

What Web Browser Do You Use?

View Results

Loading ... Loading ...

Vote!

What do you prefer..VMware or Hyper-V?

View Results

Loading ... Loading ...