[英]adding Powershell Modules into Runspace asp.net
嗨,有人可以指出我的代码有误吗?
调用时收到如下错误
我的服务器具有以下模块,而PSsnapin的模块
路径模块pstcheck = C:\\ Windows \\ System32 \\ WindowsPowerShell \\ v1.0 \\ Modules \\ MailboxPSTCheck路径模块过期= C:\\ Windows \\ System32 \\ WindowsPowerShell \\ v1.0 \\ Modules \\ NewExchangeSession
Get-PSSnapin注册名称:Microsoft.Exchange.Management.PowerShell.E2010 PSVersion:1.0说明:Exchange Server名称的管理任务:Microsoft.Exchange.Management.PowerShell.Setup PSVersion:1.0说明:Exchange Server名称的设置任务:Microsoft.Exchange.Management.Powershell.Support PSVersion:1.0说明:Exchange Server的支持任务
这些问题通常是由您的程序作为64位进程运行而导致的,而仅在32位PowerShell下注册了管理单元(反之亦然)。 尝试将您的VB项目的Platform Target更改为x86。 如果仍不能解决问题,请尝试使用x64。 最终,您要针对的平台是注册了Exchange管理单元的任何PowerShell版本(x64或x86)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.