Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Powershell ISE and Powershell return different results from Exchange 2013

$
0
0

Not sure if this is an Exchange issue, seems to be PS. I run a script weekly that looks at the Message Tracking logs for emails sent to specific email address from our Exchange 2007 and 2013 servers.

It does this from a remote server specifically set-up for scripting and runs in 2 parts, 1) loads the Exchange Management tools and queries 2007 2) remote PS connection to 2013 and queries 2013. For some reason, we get NO results from 2013.

So, I load the script into ISE and run it. No 2013 results. However, if I use the exact code for the remote PS sessions in Powershell cmd window (Not through ISE) I get the three results I expect.

Is there a difference in the way ISE and cmd run on remote PS sessions? Why would one server, using the same commands as the same user remoting to the same server get different results? Please help, I feel like I'm losing my mind.

Scripting Server. Windows 2008R2; PSVersion 4.0; PSRemoting Protocol 2.2

EMail server. Windows 2012R2; PSVersion 4.0; PSRemoting Protocol 2.2


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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