Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Issue with enabling remote mailbox in script

$
0
0

Hey guys!

Running into an issue where I can’t enable a remote mailbox when its in a script. I can do it normally, but whenever I run my script, I got a exception error.

The type initializer for ‘Microsoft.Exchange.Diagnostic.ExTrace.Configuration’ threw an exception.

*CategoryInfo : Operation Stopped:(adminserver.mydomain.com:String) [], PSRemotingTransportException *FullyQualifiedErrorID : JobFailure *PSComputerName : adminserver.mydomain.com

I ran through Google and was searching for anything that could help. I installed Powershell 4.0 in the hopes that would work, but to no avail. These are Win 2008R2 machines.

Is there any place else I can look or things to try before I have to start over from scratch? Any and all help is, as always, appreciated.

Thanks!

EDIT: For context, here is the pastebin. It dies at line 164.

http://pastebin.com/2Fgcf21W

submitted by /u/idolmindapproved
[link] [comments]

The post Issue with enabling remote mailbox in script appeared first on How to Code .NET.


Viewing all articles
Browse latest Browse all 8793

Latest Images

Trending Articles



Latest Images