.net - adding Powershell Modules into Runspace asp.net -


Hi nobody can say that I am getting wrong in my code

I have the following errors Invoking on

  1. Windows PowerShell snap-in 'Microsoft.Exchange.Management.PowerShell.Admin' is not installed on this machine.
  2. The word 'mailbox report' is not recognized by the name of a CMDlet, function, script file or operative program. Check the spelling of the name, or if the path is included, verify that the path is correct and try again

In my server there are the following modules and PSsnapin's

Path Module pstcheck = C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \ Module \ Mailbox PSTCheck Path Module exsession = C: \ Windows \ System32 \ WindowsPowerShell \ v1.0 \ Module \ NewExchangeSession

Go-PSSnapin - Registered Name: Microsoft.Exchange.Management.Power.Shell.E2010 PSVersion: 1.0 Description: Administrator task for Exchange Server name: Microsoft.Exchange.Management.Power.Shell.Set Up PSVersion: 1.0 Description: Setup function for Exchange server name: Microsoft.Exchange. Edit P.S.Version: 1.0 Description: Support work for Exchange Server

This problem is usually running as a result of your program in the 64-bit process, whereas the snapin is only registered under 32-bit PowerShell (or vi)). Try changing the platform target of your VB project to x86. If he does not fix it, then try x64 Finally, whatever version of Exchange snapin is registered in PowerShell (x64 or x86) is the platform that you want to target.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -