Page 2 of 2
Re: exchange 2013 powershell script
Posted: Mon Apr 07, 2014 1:08 pm
by sreinhardt
OK, by default the add-pssnapin Microsoft.Exchange.Management.PowerShell should link to the highest version installed, since that seems to be having troubles, let's try importing the 2013 version specifically.
add-pssnapin Microsoft.Exchange.Management.PowerShell.E2013
Also I just wanted to confirm, this is a 64 bit OS and using 64 bit powershell application? The exchange 2013 snapin can be installed on but not loaded on x86 systems, hence why I asked.
Re: exchange 2013 powershell script
Posted: Thu Jul 17, 2014 2:40 am
by MichielvM
Update:
I run powershell ise "as administrator"
When prompted for 'identity' I entered the servername
It exits
Does that mean everything is fubar?
Re: exchange 2013 powershell script
Posted: Thu Jul 17, 2014 3:51 pm
by tmcdonald
sreinhardt wrote:Also I just wanted to confirm, this is a 64 bit OS and using 64 bit powershell application? The exchange 2013 snapin can be installed on but not loaded on x86 systems, hence why I asked.
Looks like it *might* not be able to read any output, so it defaults to 0. It's been a while since this thread was last active, so apologies if my thoughts are not fresh in my head.
Re: exchange 2013 powershell script
Posted: Fri Jul 18, 2014 8:45 am
by MichielvM
yeah, I know. I had a bunch of other things and a holiday in the meantime..
Are there any plans for an official plugin for exchange2013?
Re: exchange 2013 powershell script
Posted: Fri Jul 18, 2014 11:53 am
by tmcdonald
MichielvM wrote:Are there any plans for an official plugin for exchange2013?
I would think not. We actively maintain the standard
Nagios plugins but in terms of creating new ones that would need to be discussed.
Re: exchange 2013 powershell script
Posted: Tue Jul 29, 2014 3:51 am
by MichielvM
I managed to get in toucht with the author of the script.
He provided me with an updated version.
Back to thinkering and testing.
I got it running on the server. That's positive.
points to figure out:
Have NagiosXi run powershell as admin
and edit the command to pass the args
How to auto-run the add-snapin comandlet (servers tend to reboot every now and then)
bug my admins on what they really need to see....
Re: exchange 2013 powershell script
Posted: Tue Jul 29, 2014 10:34 am
by sreinhardt
bug my admins on what they really need to see...
That guy right there

Glad you got a working script! Let me know if you have other troubles.