Hi Cptrico.
Thanks for your cool plugin.
It seems, that I have a Special Problem.
I try to run a script, which trys to add a snapin via Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010 command.
When I open a powershell on a gui at the Server, the script does what it intended to do.
When I try to do the same within POTS I receive a message "Get-Mailbox ..." is no part of a cmdlet, a function ....
When I try to add the same snapin within a 32 bit powershell, the command to add the snapin says, that this snapin isn't registered.
It seems to be that your plugin runs the 32 bit powershell, right? This snapin is only available within 64 bit powershell.
My System:
Windows Server 2008 R2, newest updates installed (incl. WinRM 4 for Powershell 4)
Pulseway 4.7.6 Agent.
Impersination within your plugin is activated to our Domain account.
The script loads the following things at the beginning:
Import-Module ActiveDirectory
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.E2010
What I am trying to do, is to generate statistics from Exchange 2010 Mailboxes.
As I said: The script itself works.
Any advise?