People,
Can anyone here please assist me with how to successfully load the Exchange Server 2010 Powershell into the PowerGUI IDE ?
Because I got the following error below popping up:
---------------------------
Error
---------------------------
The type initializer for 'Microsoft.Exchange.Diagnostics.DiagnosticTraceLogging' threw an exception.
---------------------------
OK
---------------------------
and this one from the console:
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
I'm running Windows 8.1 and here is the Powershell table versions:
Windows PowerShellCopyright (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