We help IT Professionals succeed at work.
Get Started

Unable to load Exchange Server powershell library ?

1,254 Views
Last Modified: 2015-04-30
Folks,

Can anyone please share the trick in how to run the Exchange Server 2010 powershell in PowerGUI powershell IDE ?

Because in my WIndows 8.1 the Powershell version is as follows:

Windows PowerShell
Copyright (C) 2014 Microsoft Corporation. All rights reserved.

PS H:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.34209
BuildVersion                   6.3.9600.17400
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2

Open in new window


and this is the error that I'm receiving in the Console Window:
Add-PSSnapin : Cannot load Windows PowerShell snap-in 
Microsoft.Exchange.Management.PowerShell.E2010 because of the following error: The 
type initializer for 'Microsoft.Exchange.Data.Directory.Globals' threw an exception.
At line:1 char:258
+ ... t -eq 0 } | %{ Add-PSSnapin $_ }
+                    ~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Excha...owerShell.E2010:String) [Add-PSSnapin], PSSnapInException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand

Open in new window


Any kind of help and assistance would be greatly appreciated.

Thanks
Comment
Watch Question
"Batchelor", Developer and EE Topic Advisor
CERTIFIED EXPERT
Top Expert 2015
Commented:
This problem has been solved!
Unlock 1 Answer and 17 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE