PSSnapin

Hello,

I imported an Exchange PSSnapin to my management server. I tried to run the following command

get-mailboxdatabase | get-mailbox -resultsize unlimited | get-mailboxstatistics

I got the error listed in the screen capture.

When I run the command from an Exchange Management Shell opened on the Exchange server it worked as expected.

Thank you for your help.

br

Csaba


May 11th, 2015 9:23am

Hello

tip: if have got more DC try add -domaincotroller to command.

Free Windows Admin Tool Kit Click here and download it now
May 11th, 2015 1:39pm

It looks like you are trying to load the management shell from a remote machine with the Exchange Tools installed. According to this blog that is not supported:

http://blogs.technet.com/b/rmilne/archive/2015/01/28/directly-loading-exchange-2010-or-2013-snapin-is-not-supported.aspx

Recommendation is to use Powershell remoting for accessing the EMS.


May 11th, 2015 2:50pm

I don't have Exchange tools installed on the management server. I used Powershell remoting like it is described in the blog.

Thanks for the answer.

Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 2:18am

I added more DCs, it did not help.
May 12th, 2015 3:05am

In the mean time I continued the investigation and got interesting results. Let me share it with you.

I run get-mailbodatabase db5 | get-mailbox -verbose in two different situation: EMS (exchange management shell) and Powershell remoting. In the face case, powershell searched for DB5 as MailboxDatabase, CORRECT!

However in the second case, DB5 was identified as ADuser, witch is WRONG!.

Free Windows Admin Tool Kit Click here and download it now
May 12th, 2015 3:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics