Quantcast
Viewing all articles
Browse latest Browse all 8719

Microsoft.Exchange.Management.PowerShell.CmdletConfigurationEntries' threw an exception

Okay, I have a big and strange problem. I have a script that has the following line in it:

"add-pssnapin Microsoft.Exchange.Management.PowerShell.SnapIn"

When running the script from ISE everything works just as it should do, but as soon as I create a scheduled task to run it, it fails on that specific SnapIn with the following error: The type initializer for 'Microsoft.Exchange.Management.PowerShell.CmdletConfigurationEntries' threw an exception.

So this only happens when I run it as a scheduled task, not otherwise. I've seen that there has been trouble with .Net 4.5 and Exchange 2010, but this is a Exchange 2013, where the problem should be fixed. (https://connect.microsoft.com/VisualStudio/feedback/details/…)

Does anyone know what could be wrong?


Andreas Molin | Site: www.guidestomicrosoft.com | Twitter: andreas_molin


Viewing all articles
Browse latest Browse all 8719

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>